[TuxKart-devel] [Fwd: [TuxKart-users] I have a compilation problem]
Status: Alpha
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-07-06 04:45:55
|
Steve Baker wrote: > > al wrote: > Mandrake 7.1 > Glide_V3-2.60.15-3mdk.rpm & devel rpm > Mesa3.2(compiled from source) > plib-1.2.0-i586.rpm (NOT source) > freeglut-alpha-1.3(source) > VooDoo3 1000 AGP ... > /usr/include/plib/sg.h:842: `FLT_MAX' undeclared (first use this function) ... This seems to be related to the problem with FLT_EPSILON being undefined in some places and <float.h> being "missing" sometimes. Dunno if anyone can shed any light on this - but indeed, the classic C header "/usr/include/float.h" is not present under my SuSE 6.4 system...and none of the other headers in /usr/include or and of it's subdirectories seem to have a definition for FLT_MAX. In desperation, I wrote: #include <math.h> float x = FLT_MAX ; ...and ran: % cpp test.c ...which suggested that the definition of FLT_MAX was in "/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/float.h" A SuSE specific directory?!? Yuck! Can *anyone* tell me why this might be fouling up under Mandrake 7.1? The first couple of lines of /usr/include/plib/sg.h are: #include <limits.h> #include <math.h> I've had to avoif doing a: #include <float.h> ...under Linux *because* that file has ceased to exist in the 'normal' places. My head hurts...somebody make it stop! There must be some weird kind of magic going on inside the compiler somewhere. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |