升压链接器错误:无法解析的外部符号QUOT;类boost ::系统:: error_category常量和放大器; __cdecl提高::系统:: get_system_category(无效)" [英] Boost linker error: Unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_system_category(void)"

查看:264
本文介绍了升压链接器错误:无法解析的外部符号QUOT;类boost ::系统:: error_category常量和放大器; __cdecl提高::系统:: get_system_category(无效)"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用升压首次,细节:

I'm just getting started with Boost for the first time, details:

  1. 在我使用Visual Studio 2008 SP1
  2. 在我做的基于x64编译
  3. 在我使用boost ::仅ASIO(和它有任何相关性)

我的code编译现在,我指着我的项目在Boost库(已建成64库后),并得到了过去简单的问题,现在我面临着一个链接错误:

My code now compiles, and I pointed my project at the boost libraries (after having built x64 libs) and got past simple issues, now I am facing a linker error:

2>BaseWebServer.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_system_category(void)" (?get_system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>BaseWebServer.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_generic_category(void)" (?get_generic_category@system@boost@@YAAEBVerror_category@12@XZ)

什么想法?

我添加了这个定义:#定义BOOST_LIB_DIAGNOSTIC

I added this define: #define BOOST_LIB_DIAGNOSTIC

而现在我在输出我看到这样的:

And now in my output I see this:

1>Linking to lib file: libboost_system-vc90-mt-1_38.lib
1>Linking to lib file: libboost_date_time-vc90-mt-1_38.lib
1>Linking to lib file: libboost_regex-vc90-mt-1_38.lib

这似乎表明这是逸岸连接系统中的库。

which seems to indicate it is infact linking in the system lib.

推荐答案

问题解决了。我已经建立32位的库时,我本来打算建64位的库。我搞掂我的生成报表,并内置64位库,现在它的作品。

Solved the problem. I had built 32bit libs when I had intended to build 64bit libs. I fixed up my build statement, and built 64bit libraries and now it works.

下面是我的bjam命令行:

Here is my bjam command line:

C:\Program Files (x86)\boost\boost_1_38>bjam --build-dir=c:\boost --build-type=complete --toolset=msvc-9.0 address-model=64 architecture=x86 --with-system

这篇关于升压链接器错误:无法解析的外部符号QUOT;类boost ::系统:: error_category常量和放大器; __cdecl提高::系统:: get_system_category(无效)"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆