【VS開發】【C/C++開發】關於boost庫的C++11致使的undefined符號問題

undefined reference to boost::program_options::options_description::m_default_line_lengthcss

問題最終解決依靠的是以下的問題:html

Visual Studio 2015: 版本boost_1_61_0有問題,從新利用Visual C++ 2015 x64編譯也沒用;ide

更新版本爲boost_1_65_1後,利用x64編譯則沒問題 。ui

參考的解決方案說明以下:spa

There were changes to the <string> class in the C++11 standard which may conflict with versions of the Boost library that were compiled with a non-C++11 compiler (such as G++-4.8). Try recompiling boost or using a version of C++ compiler that was used to compile your Boost libraries
code

http://www.boost.org/官網上對新版本的描述以下:
htm

We aim to establish "existing practice" and provide reference implementations so that Boost libraries are suitable for eventual standardization. Ten Boost libraries are included in the C++ Standards Committee's Library Technical Report (TR1) and in the new C++11 Standard. C++11 also includes several more Boost libraries in addition to those from TR1. More Boost libraries are proposed for standardization in C++17.
ip


--------------ci

張朋藝 pyZhangBIT2010@126.comget

2017-12-08

相關文章
相關標籤/搜索