axiom-mail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-mail] What is gazonk*.c


From: ming lu
Subject: [Axiom-mail] What is gazonk*.c
Date: Mon, 23 Oct 2006 10:23:35 -0500

Hi group,
I just started to learn axiom and is running it under linux. I got
following error when I tried to build a Fibonacci number. Anyone could
show me what I did wrong?
Thanks,
Ming
(1) -> p(0)==1
                                                                  Type: Void
(2) -> p(1)==1
                                                                  Type: Void
(3) -> p(n)==p(n-1)+p(n-2)
                                                                  Type: Void
(4) -> p(3)
  Loading /home/mlu/axiom/mnt/linux/algebra/INT.o for domain Integer
  Loading /home/mlu/axiom/mnt/linux/algebra/PI.o for domain
     PositiveInteger
  Loading /home/mlu/axiom/mnt/linux/algebra/NNI.o for domain
     NonNegativeInteger
  Compiling function p with type Integer -> PositiveInteger
  Loading /home/mlu/axiom/mnt/linux/algebra/BOOLEAN.o for domain
     Boolean
  Compiling function p as a recurrence relation.
/tmp/gazonk2.c:414: redeclaration of C++ built-in type `bool'
/tmp/gazonk2.c:2834: syntax error before `new'
In file included from /tmp/gazonk2.c:3185:
/tmp/gazonk2.c:1976: previous declaration of `void* malloc(unsigned int)' with
  C++ linkage
/usr/include/stdlib.h:584: conflicts with new declaration with C linkage
/usr/include/stdlib.h:584: declaration of `void* malloc(unsigned int) throw ()'
  throws different exceptions
/tmp/gazonk2.c:1976: than previous declaration `void* malloc(unsigned int)'
/tmp/gazonk2.c:1977: previous declaration of `void* realloc(void*, unsigned
  int)' with C++ linkage
/usr/include/stdlib.h:595: conflicts with new declaration with C linkage
/usr/include/stdlib.h:595: declaration of `void* realloc(void*, unsigned int)
  throw ()' throws different exceptions
/tmp/gazonk2.c:1977: than previous declaration `void* realloc(void*, unsigned
  int)'
/tmp/gazonk2.c:3389: syntax error before `new'
/tmp/gazonk2.c:3835: syntax error before `new'
/tmp/gazonk2.c:3836: syntax error before `new'
/tmp/gazonk2.c:3837: syntax error before `new'
/tmp/gazonk2.c:3954: syntax error before `export'
/tmp/gazonk2.c: In function `void L1()':
/tmp/gazonk2.c:2450: too many arguments to function `lispunion* elt()'
/tmp/gazonk2.c:5159: at this point in file
/tmp/gazonk2.c:2450: too many arguments to function `lispunion* elt()'
/tmp/gazonk2.c:5160: at this point in file
/tmp/gazonk2.c:2450: too many arguments to function `lispunion* elt()'
/tmp/gazonk2.c:5161: at this point in file
/tmp/gazonk2.c:5180: too many arguments to function
(4) ->




reply via email to

[Prev in Thread] Current Thread [Next in Thread]