Re: [TuxKart-users] I have a compilation problem(corection)
Status: Alpha
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-07-06 04:37:00
|
al wrote: > > 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) > > > > SHORT ANSWER: > > > > Well, I'm guessing that the short answer is to hack in: > > > > #include <float.h> > > > > ...into PLIB's src/sg.h, to re-build and re-install PLIB, and then > > to try again...but that doesn't compile on my Linux box. > > > > this doesn't work for me either > plib doesn't compile with or without the sg.h edit, I installed a > bin rpm OK - since you are a non-programmer, let's try to do a kludge to get you up and running while we all go off and try to figure out WTF is going on here. To get you up and running, (and assuming you can install PLIB from the RPM) edit /usr/include/plib/sg.h and add this just before it says '#define sgFloat float' : #ifndef FLT_MAX # define FLT_MAX (3.40282e+38) #endif #ifndef DBL_MAX # define DBL_MAX (1.79769e+308) #endif Boy - those are *BIG* numbers! ...anyway, that should allow you to compile and run TuxKart OK. Sorry for the hassle - I have no idea why this doesn't work for you. -- 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 |