Re: M_PI not being found in math.h with gtk

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

 



On Thu, 2007-02-01 at 16:45 -0500, zentara wrote:> However, when I use the gtk libs> ----------------------------------------------------------------> #include <math.h>                                                            > #include <gtk/gtk.h>                                                         >                                                                              > int  main (){                           >                                                                     >   g_print("%f\n",M_PI);                                                      >                                                                              > return 0;                                                                    > }  > -------------------------------------------------------------> > I get errors>  error: ‘M_PI’ undeclared 
Works fine here.  Which libc are you using?  What compiler flags?
Ed
_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux