|
Include<boost/shared_ptr> doesn't compile with QNX 6.6 QCC and c++11
|
11/14/2014 1:03 PM
post112347
|
Include<boost/shared_ptr> doesn't compile with QNX 6.6 QCC and c++11
Hi QNX folks,
Using the std=c++11, QNX 6.6 QCC threw a compile error when I included boost/shared_ptr.
#include <boost/shared_ptr.hpp>
In file included from /home/test/qnx/ThirdParty/boost_1_55_0/boost/smart_ptr/detail/spinlock_sync.hpp:18:0,
from /home/test/qnx/ThirdParty/boost_1_55_0/boost/smart_ptr/detail/spinlock.hpp:41,
from /home/test/qnx/ThirdParty/boost_1_55_0/boost/smart_ptr/detail/spinlock_pool.hpp:25,
from /home/test/qnx/ThirdParty/boost_1_55_0/boost/smart_ptr/shared_ptr.hpp:38,
from /home/test/qnx/ThirdParty/boost_1_55_0/boost/shared_ptr.hpp:17,
from /home/test/qnx/TestProgram/math/math.cpp:5:
/home/test/qnx/ThirdParty/boost_1_55_0/boost/smart_ptr/detail/yield_k.hpp: In function 'void boost::detail::
yield(unsigned int)':
/home/test/qnx/ThirdParty/boost_1_55_0/boost/smart_ptr/detail/yield_k.hpp:122:29: error: 'nanosleep' was not declared in
this scope
cc: /opt/qnx660/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.6.0eabi/4.7.3/cc1plus error 1
make[2]: *** [TestProgram/math/CMakeFiles/testapp.math.dir/math.cpp.o] Error 1
make[1]: *** [TestProgram/math/CMakeFiles/testapp.math.dir/all] Error 2
Is this a boost issue or the QNX 6.6 toolchain issue?
Best regards,
Anton
|
|
|