On Tue, May 17, 2005 at 09:43:54AM -0700, Martin, Jason H wrote:
> In the latest version of trend, running w/freeglut 2.2.0, gcc 3.3.2,
> Solaris 9/SPARC, I get the following error when compiling trend:
> 
> $ /usr/local/bin/make
> g++ -I/usr/local/include  -c -o trend.o trend.cc
> trend.cc: In function `void drawGridY(double)':
> trend.cc:517: error: `drem' undeclared (first use this function)
> trend.cc:517: error: (Each undeclared identifier is reported only once
> for each 
>    function it appears in.)
> make: *** [trend.o] Error 1
> $
> 
> I experienced the same error running the standard 'GLUT' from
> opengl.org.  Does anyone have any suggestions?

Hi Jason.

It surprises me that solaris 9 hasn't "drem".

Not a great issue however, I was thinking of replacing it with the
faster fmod. In the meantime, after:

| #ifndef NAN
| #define NAN numeric_limits<double>::quiet_NaN()
| #endif

add the line

#define drem fmod

-- 
'(wave++ "Yuri D'Elia" "http://www.yuv.info/~wavexx/";)

Reply via email to