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



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]