On Sunday 15 July 2007, Giel van Schijndel wrote: > Per Inge Mathisen schreef: > > On 7/15/07, Martin Koller <[EMAIL PROTECTED]> wrote: > >> I have revision 2105 and I can no longer compile on Linux due to the > >> following problem: > >> > >> move.c: In function `moveGetDirection': > >> move.c:1967: warning: implicit declaration of function `isfinite' > > > > What distribute/version of Linux, and what version of gcc are you using? > > The version of Linux shouldn't matter at all (the distro might matter > though). I would be more interested to know the glibc and gcc versions.
I'm on a (already heavily modified) Suse 9.3. The compiler is gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux) glibc is 2.3.4 > > Try replacing isfinite() with finitef(). > > Either that, or try adding --std=gnu99 to your CFLAGS (when using > configure). isfinite is, according to man, conforming to C99, so there should be a compile flag somewhere, which defines _ISOC99_SOURCE or adds --std=c99 If I add CFLAGS=--std=c99 to configure, it works man gcc says here: gnu89 Default, ISO C90 plus GNU extensions (including some C99 features). ... which seems to not include isfinite Who knows which make related files to adapt to add the c99 flags ? -- Best regards/Schöne Grüße Martin () ascii ribbon campaign - against html mail /\ - against microsoft attachments Computers and Internet gave you freedom. TCPA would TAKE your FREEDOM! http://www.againsttcpa.com
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev