[Marble-devel] M_PI on Windows

Prashanth Udupa prashanth.udupa at gmail.com
Wed Aug 15 20:45:42 CEST 2007


Hi,

I am using Visual Studio 2005. The compiler says

e:\marblekde\src\lib\global.h(33) : error C2065: 'M_PI' : undeclared
identifier

Actually math.h is included in this header. May be in MSVC 2005 math.h does
not define M_PI?

Best Regards,
Prashanth

On 8/16/07, Tim Sutton <tim at linfiniti.com> wrote:
>
> Hi
>
> Are you compiling with mingw or mscv? What exactly was the file on
> which the compiler halted? Try sending the console output that
> includes the error. I'm guessing math.h is missing from one of the
> headers but I dont have enough info from your report to say from
> which.
>
>
> Regards
>
> Tim
>
> 2007/8/15, Prashanth Udupa <prashanth.udupa at gmail.com>:
> > Hi,
> >
> > When I try to compile Marble on Windows I get a message saying that M_PI
> was
> > not found. Currently I just inserting a statement (const double M_PI =
> > 3.1415) in global.h and getting it to work. Is this the right way to do
> it?
> > What should M_PI be? Where is this constant defined?
> >
> > --
> > Thanks and Warm Regards,
> > Prashanth N Udupa
> >      EMail:      prashanth.udupa at gmail.com
> >      Website: http://www.prashanthudupa.com
> >      LJ: http://prashanthudupa.livejournal.com/
> > _______________________________________________
> > Marble-devel mailing list
> > Marble-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/marble-devel
> >
> >
>
>
> --
> Tim Sutton
> QGIS Project Steering Committee Member - Release  Manager
> Visit http://qgis.org for a great open source GIS
> openModeller Desktop Developer
> Visit http://openModeller.sf.net for a great open source ecological
> niche modelling tool
> Home Page: http://tim.linfiniti.com
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net
>



-- 
Thanks and Warm Regards,
Prashanth N Udupa
     EMail:      prashanth.udupa at gmail.com
     Website: http://www.prashanthudupa.com
     LJ: http://prashanthudupa.livejournal.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20070816/e5965bf8/attachment.html 


More information about the Marble-devel mailing list