Public bug reported:

When trying to compile I get the following error:

...
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)
^
...

Which according to this http://stackoverflow.com/questions/570669
/checking-if-a-double-or-float-is-nan-in-c is related with the fact that
std::isnan(x) is not defined in the current standard. Because isnan() is
included in cmath in order to correct the problem I just removed std::
from the two entries.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: openscenegraph 3.2.0~rc1-4
ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
Uname: Linux 3.13.0-19-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 25 22:28:15 2014
InstallationDate: Installed on 2014-02-07 (46 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140207)
SourcePackage: openscenegraph
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: openscenegraph (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1297537

Title:
  error in file /usr/include/osg/Math invalid data type declaration

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openscenegraph/+bug/1297537/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to