After Erik recently added a Solaris fix I'd like to proceed with the
next 'importability'  ;-)  This is what makes my compiler unhappy:

make[4]: Entering directory `/usr/local/src/SimGear/simgear/scene/model'
g++ -mcpu=hypersparc -mtune=hypersparc -DHAVE_CONFIG_H -I. -I.
  -I../../../simgear -I../../..  -I/opt/gnu/include -I/usr/local/include
  -I/opt/FlightGear/include -O3 -D_REENTRANT -c -o shadanim.o `test -f
  'shadanim.cxx' || echo './'`shadanim.cxx
shadanim.cxx: In function `int heat_haze_shader_callback(ssgEntity*)':
shadanim.cxx:178: error: `fmodf' undeclared (first use this function)
shadanim.cxx:178: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
make[4]: *** [shadanim.o] Error 1


Well, I tried a (too) simple fix my replacing "fmodf" with "modf" which
_does_ exist on Solaris8 but the compiler error now looks like this
one:

shadanim.cxx: In function `int heat_haze_shader_callback(ssgEntity*)':
shadanim.cxx:178: error: cannot convert `float' to `double*' for argument `2' 
to `double modf(double, double*)'
make[4]: *** [shadanim.o] Error 1


I _do_ understand the fault but I'm unable to fix it. Does anyone have
a portable notation to offer ?

Thanks,
        Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to