【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

相关文章
相关标签/搜索