[Marble-devel] Compile error on MSVC 2010

PUHR Joachim JOACHIM.PUHR at thalesgroup.com
Tue May 28 08:58:13 UTC 2013


Hello,

The NavigationFloatItem  does not compile on MSVC2010 due to a compiler error:

src\plugins\render\navigation\ArrowDiscWidget.cpp(207): error C2668: 'atan2': ambiguous call to overloaded function

Solution: Line 207  in ArrowDiscWidget.cpp needs an explicit casting like:
int const angle = int( atan2( qreal(py), qreal(px) ) * RAD2DEG );

Regards,

Joachim Puhr




More information about the Marble-devel mailing list