RE: [Plib-devel] [Fwd: [TuxKart-users] I have a compilation problem]
Brought to you by:
sjbaker
From: Norman V. <nh...@ca...> - 2000-07-06 05:21:22
|
Steve Baker writes: >> > >> /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. > Steve, I went through this torment of not seeing float.h when I first started using gcc. Then one day I noticed that a program was complaining about conflicting with <float.h> after much searching I finally found it hiding in / lib / gcc-lib / i686-pc-cygwin / 2.95.2 / include I think that this is standard for gcc ( substitute your machine type for i686-pc-cygwin and 2.95.2 for your version of gcc in the above ) and that you can just include <float.h> and it will be automagically picked up. I believe the rationale behind this is that float.h is very compiler and machine specific and by doing it this way gcc can support cross-compiling and native-compiling on the same host :-) Cheers Norman |