c++ - compiling a simple application using boost process generate error -
i using boost 1.64 , generated project in vs 2013 using cmake. code follow:
#include <boost\process.hpp> namespace bp = boost::process; int main() { int result = bp::system("g++ main.cpp"); }
when try call it, getting error:
error 1 error c3646: 'noexcept' : unknown override specifier c:\local\boost\boost\process\detail\config.hpp
do neeed add other header file able compile code?
note: know code doesn't run, on windows don't have gcc, not problem, copy sample code form boost document make sure did not change art of it.
edit 1
i change code this:
#define boost_no_cxx11_noexcept #include <boost\process.hpp> namespace bp = boost::process; int main() { int result = bp::system("g++ main.cpp"); }
but still getting same error. how can fix problem?
the problem noexcept
not supported vs 2013. need define boost_no_cxx11_noexcept
, include <boost/config.hpp>
, documented here.
boost_no_cxx11_noexcept
: compiler not supportnoexcept
.
Comments
Post a Comment