Visual Studio 2005链接与提升无法解析的外部链接错误
我与boost库发行版本1_33_1链接。
我不断收到此链接错误。
libboost_thread-vc80-mt-sgd-1_33_1.lib(once.obj) :error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " ([email protected][email protected]@@QBEXXZ)
有没有人有任何建议?
C:\boost_1_42_0>bjam --build-dir=d:\boost_1_42 --build-type-complete --toolset=msvc-8.0 address-model=32 architecture=x86
我得到一些下列错误:
非常感谢,
编辑======
使用这些开关重新编译Boost库后
1>msvcrtd.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" ([email protected]@[email protected]@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>msvcrtd.lib(MSVCR80D.dll) : error LNK2005: __wassert already defined in LIBCMTD.lib(wassert.obj)
任何人有任何想法?
非常感谢,
您的项目是32位还是64位? – 2010-03-10 08:56:07
我的项目是32位。谢谢 – ant2009 2010-03-10 09:28:08
只是一个猜测,因为我曾经想将32位升级库链接到一个64位项目,它不工作,必须用64位编译该升级库。但是,也许你的升压库是用64位构建的... – 2010-03-10 09:31:45