Activemq中编译后出现error LNK2019: 无法解析的外部符号,求看下这是缺少哪种lib文件?

oYeYuanXinZhiZhu1 2017-05-03 04:15:41
1>main.obj : error LNK2019: 无法解析的外部符号 "public: static void __cdecl activemq::library::ActiveMQCPP::shutdownLibrary(void)" (?shutdownLibrary@ActiveMQCPP@library@activemq@@SAXXZ),该符号在函数 _main 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "public: static void __cdecl activemq::library::ActiveMQCPP::initializeLibrary(void)" (?initializeLibrary@ActiveMQCPP@library@activemq@@SAXXZ),该符号在函数 _main 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall decaf::lang::Runnable::~Runnable(void)" (??1Runnable@lang@decaf@@UAE@XZ),该符号在函数 __unwindfunclet$??0SimpleProducer@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I0_N1@Z$0 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl decaf::lang::Long::toString(__int64)" (?toString@Long@lang@decaf@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_J@Z),该符号在函数 __catch$?run@SimpleProducer@@UAEXXZ$0 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "public: __int64 __thiscall decaf::lang::Thread::getId(void)const " (?getId@Thread@lang@decaf@@QBE_JXZ),该符号在函数 __catch$?run@SimpleProducer@@UAEXXZ$0 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "public: static class decaf::lang::Thread * __cdecl decaf::lang::Thread::currentThread(void)" (?currentThread@Thread@lang@decaf@@SAPAV123@XZ),该符号在函数 __catch$?run@SimpleProducer@@UAEXXZ$0 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall cms::CMSException::CMSException(class cms::CMSException const &)" (??0CMSException@cms@@QAE@ABV01@@Z),该符号在函数 __catch$?run@SimpleProducer@@UAEXXZ$0 中被引用
1>main.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall activemq::core::ActiveMQConnectionFactory::ActiveMQConnectionFactory(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0ActiveMQConnectionFactory@core@activemq@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z),该符号在函数 "public: virtual void __thiscall SimpleProducer::run(void)" (?run@SimpleProducer@@UAEXXZ) 中被引用
1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall cms::CMSException::~CMSException(void)" (??1CMSException@cms@@UAE@XZ)
1>c:\users\documents\visual studio 2010\Projects\ActivemqText\Debug\ActivemqText.exe : fatal error LNK1120: 9 个无法解析的外部命令

...全文
239 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
oYeYuanXinZhiZhu1 2017-05-03
  • 打赏
  • 举报
回复
引用 1 楼 zhao4zhong1 的回复:
将错误信息中出现的标识符放在百度里面搜一下,看其在哪个.lib中,然后在本地硬盘上搜索该.lib,如果没有,在网上搜索相关库或模块下载安装,然后将其所在目录填写到“附加依赖库所在目录”中,将其名字添加到“附加依赖库”中,重新连接。 项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项 项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项
找到了,我少链接了一个自己编译出来的链接库,加上去就好了。
oYeYuanXinZhiZhu1 2017-05-03
  • 打赏
  • 举报
回复
引用 1 楼 zhao4zhong1 的回复:
将错误信息中出现的标识符放在百度里面搜一下,看其在哪个.lib中,然后在本地硬盘上搜索该.lib,如果没有,在网上搜索相关库或模块下载安装,然后将其所在目录填写到“附加依赖库所在目录”中,将其名字添加到“附加依赖库”中,重新连接。 项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项 项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项
百度上也没有找到相应的错误,所以不知道是哪个lib
赵4老师 2017-05-03
  • 打赏
  • 举报
回复
将错误信息中出现的标识符放在百度里面搜一下,看其在哪个.lib中,然后在本地硬盘上搜索该.lib,如果没有,在网上搜索相关库或模块下载安装,然后将其所在目录填写到“附加依赖库所在目录”中,将其名字添加到“附加依赖库”中,重新连接。 项目、属性、链接器、常规、附加库目录:填写附加依赖库所在目录 分号间隔多项 项目、属性、链接器、输入、附加依赖项:填写附加依赖库的名字.lib 空格或分号间隔多项

64,654

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧