C++Boost库中的链接错误
Linking error in C++ Boost library
我是C++Boost库的新手。
我已经在BoostPro Computing网站上安装了Boost 1.51,包括32位和64位版本(位于两个不同的文件夹(Boost_1_51和Boost_1_1_51_x64)。
我尝试使用Visual Studio 2005 SP2(在32位Windows操作系统上)为x64构建,但出现以下错误:
error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
我在项目配置中进行了库链接(其他include和库目录的提升路径)。例如:
包括:C:\Program Files\boost\boost_1_51_x64\
库:C:\Program Files\boost\boost_1_51_x64\lib
有人能帮我找出上面的链接错误吗?
根据以上评论:
我通过重新安装boost库(64位版本)解决了这个问题。也许在我上次安装时出现了一些错误。
我通过手动将"boostrongystem-vc120-mt-1_61.lib"(您的版本会有所不同)添加到项目中来解决这个问题。我使用的是预构建的windows二进制文件https://sourceforge.net/projects/boost/files/boost-binaries/
相关文章:
- 静态数据成员的问题-修复链接错误会导致编译器错误
- Visual Studio mkl_link_tool.exe链接错误
- C++ 实现模板单例类时出现链接错误
- 使用类模板的方法链接错误
- MySQL C++连接器链接错误
- VS 2015 链接错误 无法构建依赖于 libcurl 的项目
- 运行 C++ 单元测试时LNK2005链接错误
- 对 CMake 中'cudaRegisterLinkedBinary'链接错误的未定义引用?
- 链接错误,包括我创建的相同头文件 - C++
- 在Embarcadero C++ Builder中生成的DLL未解决的外部链接错误
- 使用标头保护的多个定义链接错误
- 链接错误:未定义对 stdscr 和 wgetch 的引用
- 使用 Vivek 的 Vcam / 捕获源过滤器构建/链接错误
- 升压program_options中的链接错误
- 使用 g++ 预处理器进行替换会导致链接错误
- 在调试配置中编译工作正常,但发布会给出链接错误
- 相邻矩阵设置链接错误
- 包含常量变量并包含在多个文件中的标头的链接错误
- C++链接错误,我理解但无法解决
- 是什么导致macOS Mojave上的GoogleTest链接错误