Hi,<br><br>No. I still get the same error. :(<br><br>e:\marblekde\src\lib\global.h(36) : error C2065: &#39;M_PI&#39; : undeclared identifier<br><br>Best Regards,<br>Prashanth<br><br><div><span class="gmail_quote">On 8/16/07, 
<b class="gmail_sendername">Tim Sutton</b> &lt;<a href="mailto:tim@linfiniti.com">tim@linfiniti.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>Yes I suspect this is the problem. Does adding<br><br>#ifdef MSVC<br>#include &lt;cmath.h&gt;<br>#endif<br><br>instead of your m_pi def fix the problem?<br><br>Regards<br><br>Tim<br>2007/8/15, Prashanth Udupa &lt;
<a href="mailto:prashanth.udupa@gmail.com">prashanth.udupa@gmail.com</a>&gt;:<br>&gt; Hi,<br>&gt;<br>&gt; I am using Visual Studio 2005. The compiler says<br>&gt;<br>&gt; e:\marblekde\src\lib\global.h(33) : error C2065: &#39;M_PI&#39; :
<br>&gt; undeclared identifier<br>&gt;<br>&gt; Actually math.h is included in this header. May be in MSVC 2005 math.h does<br>&gt; not define M_PI?<br>&gt;<br>&gt; Best Regards,<br>&gt; Prashanth<br>&gt;<br>&gt;<br>&gt; On 8/16/07, Tim Sutton &lt;
<a href="mailto:tim@linfiniti.com">tim@linfiniti.com</a>&gt; wrote:<br>&gt; &gt; Hi<br>&gt; &gt;<br>&gt; &gt; Are you compiling with mingw or mscv? What exactly was the file on<br>&gt; &gt; which the compiler halted? Try sending the console output that
<br>&gt; &gt; includes the error. I&#39;m guessing math.h is missing from one of the<br>&gt; &gt; headers but I dont have enough info from your report to say from<br>&gt; &gt; which.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Regards
<br>&gt; &gt;<br>&gt; &gt; Tim<br>&gt; &gt;<br>&gt; &gt; 2007/8/15, Prashanth Udupa &lt; <a href="mailto:prashanth.udupa@gmail.com">prashanth.udupa@gmail.com</a>&gt;:<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; When I try to compile Marble on Windows I get a message saying that M_PI
<br>&gt; was<br>&gt; &gt; &gt; not found. Currently I just inserting a statement (const double M_PI =<br>&gt; &gt; &gt; 3.1415) in global.h and getting it to work. Is this the right way to do<br>&gt; it?<br>&gt; &gt; &gt; What should M_PI be? Where is this constant defined?
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; --<br>&gt; &gt; &gt; Thanks and Warm Regards,<br>&gt; &gt; &gt; Prashanth N Udupa<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EMail:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:prashanth.udupa@gmail.com">prashanth.udupa@gmail.com
</a><br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Website: <a href="http://www.prashanthudupa.com">http://www.prashanthudupa.com</a><br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LJ: <a href="http://prashanthudupa.livejournal.com/">http://prashanthudupa.livejournal.com/
</a><br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Marble-devel mailing list<br>&gt; &gt; &gt; <a href="mailto:Marble-devel@kde.org">Marble-devel@kde.org</a><br>&gt; &gt; &gt; <a href="https://mail.kde.org/mailman/listinfo/marble-devel">
https://mail.kde.org/mailman/listinfo/marble-devel</a><br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Tim Sutton<br>&gt; &gt; QGIS Project Steering Committee Member - Release&nbsp;&nbsp;Manager
<br>&gt; &gt; Visit <a href="http://qgis.org">http://qgis.org</a> for a great open source GIS<br>&gt; &gt; openModeller Desktop Developer<br>&gt; &gt; Visit <a href="http://openModeller.sf.net">http://openModeller.sf.net</a>
 for a great open source ecological<br>&gt; &gt; niche modelling tool<br>&gt; &gt; Home Page: <a href="http://tim.linfiniti.com">http://tim.linfiniti.com</a><br>&gt; &gt; Skype: timlinux<br>&gt; &gt; Irc: timlinux on #qgis at 
<a href="http://freenode.net">freenode.net</a><br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt;<br>&gt; Thanks and Warm Regards,<br>&gt; Prashanth N Udupa<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EMail:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:prashanth.udupa@gmail.com">
prashanth.udupa@gmail.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Website: <a href="http://www.prashanthudupa.com">http://www.prashanthudupa.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LJ: <a href="http://prashanthudupa.livejournal.com/">http://prashanthudupa.livejournal.com/
</a><br><br><br>--<br>Tim Sutton<br>QGIS Project Steering Committee Member - Release&nbsp;&nbsp;Manager<br>Visit <a href="http://qgis.org">http://qgis.org</a> for a great open source GIS<br>openModeller Desktop Developer<br>Visit <a href="http://openModeller.sf.net">
http://openModeller.sf.net</a> for a great open source ecological<br>niche modelling tool<br>Home Page: <a href="http://tim.linfiniti.com">http://tim.linfiniti.com</a><br>Skype: timlinux<br>Irc: timlinux on #qgis at <a href="http://freenode.net">
freenode.net</a><br></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Warm Regards,<br>Prashanth N Udupa<br>&nbsp;&nbsp;&nbsp;&nbsp; EMail:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:prashanth.udupa@gmail.com">prashanth.udupa@gmail.com</a><br>&nbsp;&nbsp;&nbsp;&nbsp; Website: 
<a href="http://www.prashanthudupa.com">http://www.prashanthudupa.com</a><br>&nbsp;&nbsp;&nbsp;&nbsp; LJ: <a href="http://prashanthudupa.livejournal.com/">http://prashanthudupa.livejournal.com/</a>