我是C++ Boost库的新手。
我已经在BoostPro Computing网站上安装了Boost 1.51,包括32位和64位版本(分别在两个不同的文件夹中(boost_1_51和boost_1_51_x64)。
我尝试在32位Windows操作系统上使用Visual Studio 2005 SP2进行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)
我在项目配置中进行了库链接(包括boost路径的添加以及附加包含和库目录)。例如:
包含: C:\Program Files\boost\boost_1_51_x64\
库: C:\Program Files\boost\boost_1_51_x64\lib
有人能帮助我解决以上链接错误吗?