In file included from src/ui/MainWindow.cc:31:0:
/usr/include/osg/Math: In function ‘bool osg::isNaN(float)’:
src/QGC.h:54:18: error: ‘std::std’ has not been declared #define isnan(x) std::isnan(x)
^
/usr/include/osg/Math: In function ‘bool osg::isNaN(double)’:
src/QGC.h:54:18: error: ‘std::std’ has not been declared #define isnan(x) std::isnan(x)
^
make: *** [build-release/obj/MainWindow.o] Error 1
[quote=“keohr”]to be more specific, the error message is:
In file included from src/ui/MainWindow.cc:31:0:
/usr/include/osg/Math: In function ‘bool osg::isNaN(float)’:
src/QGC.h:54:18: error: ‘std::std’ has not been declared #define isnan(x) std::isnan(x)
^
/usr/include/osg/Math: In function ‘bool osg::isNaN(double)’:
src/QGC.h:54:18: error: ‘std::std’ has not been declared #define isnan(x) std::isnan(x)
^
make: *** [build-release/obj/MainWindow.o] Error 1[/quote]
Hello
After you pointed to error I did some searching and the file /usr/include/osg/Math has two invalid declarations of std::isnan(). According to this site:
std::isnan(x) is not defined in the current standard so I just removed std:: from the two entries and it compiled normally. I also filled a bug for that package in ubuntu.