Re: Programming with gtkmm: problem with Arcs and Circles, Clock examples
- From: Marko Anastasov <marko marko anastasov name>
- To: Wenzel <wgwenzel t-online de>
- Cc: gtkmm <gtkmm-list gnome org>
- Subject: Re: Programming with gtkmm: problem with Arcs and Circles, Clock examples
- Date: Fri, 27 Apr 2007 18:31:59 +0200
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]