Bill Allombert on Thu, 14 Apr 2005 18:56:54 +0200


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

Re: New mpqs.c in CVS does not build.


On Thu, Apr 14, 2005 at 05:50:44PM +0200, Bill Allombert wrote:
> Hello PARI developers,
> 
> Current CVS mpqs.c fails to build:
> 
> /usr/bin/gcc  -c -O3 -DGCC_INLINE -Wall -fomit-frame-pointer  -DBOTH_GNUPLOT_AND_X11 -I. -I../src/headers  -o mpqs.o ../src/modules/mpqs.c
> ../src/modules/mpqs.c: In function `mpqs_eval_cand':
> ../src/modules/mpqs.c:2737: parse error before `ei'
> ../src/modules/mpqs.c:2749: `ei' undeclared (first use in this function)
> ../src/modules/mpqs.c:2749: (Each undeclared identifier is reported only once
> ../src/modules/mpqs.c:2749: for each function it appears in.)
> ../src/modules/mpqs.c:2766: parse error before `Qx_div_p'
> ../src/modules/mpqs.c:2768: `Qx_div_p' undeclared (first use in this function)
> make[1]: *** [mpqs.o] Erreur 1
> make[1]: Leaving directory `/home/bill/pari/pari/pari/Olinux-i686'

OK, I found the problem and fixed it: the code is written in C99 and 
I am compiling in C89 mode.

I have restored C89 compliance in CVS.

Cheers,
Bill.