简体   繁体   English

提升vs2010的处理错误

[英]Boost Process errors on vs2010

I'm trying to use Boost 1.66 with VS2010, and I'm having some issues on compile after I include the header. 我正在尝试将Boost 1.66与VS2010一起使用,并且在包含标头后出现一些编译问题。 Anyone had similar issues and can help me to fix this? 任何人都有类似的问题,可以帮助我解决此问题吗?

I need to call a ffmpeg process, and using windows CreateProcess was a pain in the a** to build it and didnt worked. 我需要调用一个ffmpeg进程,并且使用Windows CreateProcess在a **中创建它很痛苦,但没有成功。

Error   1   error C3646: 'noexcept' : unknown override specifier    C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   65
Error   2   error C2660: 'boost::process::process_error::process_error' : function does not take 2 arguments    C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   72
Error   3   error C2660: 'boost::process::process_error::process_error' : function does not take 2 arguments    C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   77
Error   4   error C2440: '<function-style-cast>' : cannot convert from 'std::error_code' to 'boost::process::process_error' C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   82
Error   5   error C2146: syntax error : missing ';' before identifier 'Char'    C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   86
Error   6   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   86
Error   7   error C2146: syntax error : missing ';' before identifier 'null_char'   C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   86
Error   8   error C2144: syntax error : 'char' should be preceded by ';'    C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   87
Error   9   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   87
Error   10  error C2086: 'int boost::process::detail::constexpr' : redefinition C:\_libs\boost_1_66_0\boost\process\detail\config.hpp   87

Visual Studio 2010, 2012, 2013 doesn't support noxcept, constexpr. Visual Studio 2010、2012、2013不支持noxcept,constexpr。

Try an older boost or add before including boost 尝试使用较早的增强功能或在添加增强功能之前添加

#define noexcept
#define constexpr

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM