Re: [Plib-devel] Compiling problems in SGI Irix 6.5.7
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-05-04 23:24:36
|
Wein Gui wrote: > > Hi, friends, > > I am trying my first compilation of Plib for FlightGear, and use SGI > Octane machine's 7.3 C++ compiler in IRIX 6.5.7. > > I have installed all the needed libraries without any problems and > configure is happy. But now when I tried to "make", it stops on an > error: > cc-1020 CC: ERROR File = sgIsect.cxx, Line = 29 > The identifier "FLT_EPSILON" is undefined. > > if ( dnorm < FLT_EPSILON ) > ^ This has obviously been a problem before - because in sg.cxx (where FLT_EPSILON has also been used), it says: #ifndef FLT_EPSILON #define FLT_EPSILON 1.19209290e-07f #endif ...I should probably copy those three lines into the top of sgIsect.cxx > cc-1133 CC: ERROR File = ssgSimpleState.cxx, Line = 18 > Expression must be a modifiable lvalue. > > specular_colour = src -> specular_colour ; > ^ > > cc-1133 CC: ERROR File = ssgSimpleState.cxx, Line = 19 > Expression must be a modifiable lvalue. These are actually fixed in the latest CVS version - I havn't had the time to make a proper release out of it though. Change those four lines to: sgCopyVec4 ( specular_colour, src -> specular_colour ) ; sgCopyVec4 ( emission_colour, src -> emission_colour ) ; sgCopyVec4 ( ambient_colour, src -> ambient_colour ) ; sgCopyVec4 ( diffuse_colour, src -> diffuse_colour ) ; ...and all will be well. -- Steve Baker http://web2.airmail.net/sjbaker1 sjb...@ai... (home) http://www.woodsoup.org/~sbaker sj...@ht... (work) |