Re: [Plib-devel] [Fwd: [TuxKart-users] I have a compilation problem]
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-07-06 06:19:50
|
Norman Vine wrote: > > 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 :-) Yep - that make sense - so the compiler should know where the magic include directory is. In your case it knows to look in i686-pc-cygwin/2.95.2 - and in my case, it knows about /usr/lib/gcc-lib/i486-suse-linux/2.95.2/include/float.h ...but how does it know that this is a SuSE Linux machine? Our friend over on TuxKart-users (who is unfortunately not a programmer) is getting complaints that you and I don't see. Perhaps this is a screwup in the Mandrake distro? I hope not. Are there any Mandrake users listening who could check this out? -- 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 |