Error in kdeartwork in screensavers added from #70246

Stefan Teleman steleman at nyc.rr.com
Sun Jun 20 21:13:52 BST 2004


Does this work:

#include <limits>
using namespace std;

static const double doubleNaN = 
std::numeric_limits<double>::quiet_NaN();

--Stefan

-----

On Saturday 19 June 2004 14:22, Michael Nottebrock wrote:
> vec3.cpp: In function `static double vec3<double>::cos_angle(const
> vec3<double> &, const vec3<double> &)':
> vec3.cpp:96:   instantiated from here
> vec3.cpp:80: `NAN' undeclared (first use this function)
> vec3.cpp:80: (Each undeclared identifier is reported only once
> vec3.cpp:80: for each function it appears in.)
> gmake[4]: *** [vec3.o] Error 1
> gmake[4]: Leaving directory
> `/tmp/a/ports/x11-themes/kdeartwork/work/kdeartwork/kscreensaver/kd
>esavers'
>
> This is on FreeBSD 4-STABLE (gcc 2.95). In the source there's this
> bit:
>
> #ifndef _ISOC99_SOURCE
> // NAN is not defined by default for gcc 2.95. Enable the ISO C99
> extensions // which includes the definition of NAN.
> #define _ISOC99_SOURCE 1
> #endif
>
> but it obviously doesn't work. What to do?

-- 
Stefan Teleman          'Nobody Expects the Spanish Inquisition'
steleman at nyc.rr.com                          -Monty Python





More information about the kde-core-devel mailing list