[osg-users] Master compilation error with MinGW / C++11
philippe renon
philippe_renon at yahoo.fr
Fri Apr 10 09:53:05 PDT 2015
Hi,
I recently pulled master and I am seeing the error below.Seems like c++ 11 is now mandatory. Is that voluntary?
Philippe.
[ 89%] Building CXX object src/osgPlugins/osgjs/CMakeFiles/osgdb_osgjs.dir/Animation.obj
In file included from d:/Projects/OpenPilotTools/qt-5.4.1/Tools/mingw491_32/i686-w64-mingw32/include/c++/cstdint:35:0,
from D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:34,
from D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\Animation.cpp:12:
d:/Projects/OpenPilotTools/qt-5.4.1/Tools/mingw491_32/i686-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2: error: #er
ror This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\Animation.cpp:12:0:
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:94:67: error: 'uint8_t' was not declared in this sc
ope
void encodeArrayAsVarintBuffer(osg::Array const*, std::vector<uint8_t>&) const;
^
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:94:74: error: template argument 1 is invalid
void encodeArrayAsVarintBuffer(osg::Array const*, std::vector<uint8_t>&) const;
^
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:94:74: error: template argument 2 is invalid
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:96:39: error: 'uint8_t' was not declared in this sc
ope
void dumpVarintVector(std::vector<uint8_t>&, T const*, bool) const;
^
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:96:46: error: template argument 1 is invalid
void dumpVarintVector(std::vector<uint8_t>&, T const*, bool) const;
^
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:96:46: error: template argument 2 is invalid
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:98:38: error: 'uint8_t' was not declared in this sc
ope
void dumpVarintValue(std::vector<uint8_t>&, T const*, bool) const;
^
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:98:45: error: template argument 1 is invalid
void dumpVarintValue(std::vector<uint8_t>&, T const*, bool) const;
^
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:98:45: error: template argument 2 is invalid
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:99:17: error: 'uint8_t' was not declared in this sc
ope
std::vector<uint8_t> varintEncoding(unsigned int value) const;
^
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:99:24: error: template argument 1 is invalid
std::vector<uint8_t> varintEncoding(unsigned int value) const;
^
D:\Projects\OpenPilot\3rdparty\osg\src\osgPlugins\osgjs\JSON_Objects:99:24: error: template argument 2 is invalid
src\osgPlugins\osgjs\CMakeFiles\osgdb_osgjs.dir\build.make:57: recipe for target 'src/osgPlugins/osgjs/CMakeFiles/osgdb_
osgjs.dir/Animation.obj' failed
make[3]: *** [src/osgPlugins/osgjs/CMakeFiles/osgdb_osgjs.dir/Animation.obj] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150410/fecf503a/attachment-0002.htm>
More information about the osg-users
mailing list