Re: Programming with gtkmm: problem with Arcs and Circles, Clock examples



IIRC win32 math.h doesn't define M_PI.

Marko

У пет, 27. 04 2007. у 17:46 +0200, Wenzel пише:
> The example applications "Drawing Arcs and Circles" and "Creating a 
> Clock with Cairo" won't compile (under Windows XP, only !?).
> 
> "M_PI" isn't defined.
> 
> Inserting "#define pi 3.14159265359" (compare 
> http://www.gtkmm.org/docs/gtkmm-2.4/examples/gdk/radar.cc)
> or - more C++ish - "const double pi = 3.14159265359;" fixes this issue.
> 
> Werner Wenzel





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]