学习ActiveMQC++时的问题 明明已经加载了对应的库 可还是有连接错误 无法解析的外部符号

qq_35643617 2016-07-20 11:05:10
1>ActiveMQ_2010_Study.obj : error LNK2019: 无法解析的外部符号 "public: static void __cdecl activemq::library::ActiveMQCPP::shutdownLibrary(void)" (?shutdownLibrary@ActiveMQCPP@library@activemq@@SAXXZ),该符号在函数 _wmain 中被引用
1>ActiveMQ_2010_Study.obj : error LNK2019: 无法解析的外部符号 "public: static void __cdecl activemq::library::ActiveMQCPP::initializeLibrary(void)" (?initializeLibrary@ActiveMQCPP@library@activemq@@SAXXZ),该符号在函数 _wmain 中被引用
1>ActiveMQ_2010_Study.obj : error LNK2019: 无法解析的外部符号 "public: int __thiscall decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet(void)" (?decrementAndGet@AtomicInteger@atomic@concurrent@util@decaf@@QAEHXZ),该符号在函数 "protected: bool __thiscall decaf::util::concurrent::atomic::AtomicRefCounter::release(void)" (?release@AtomicRefCounter@atomic@concurrent@util@decaf@@IAE_NXZ) 中被引用
1>SimpleAsyncConsumer.obj : error LNK2001: 无法解析的外部符号 "public: int __thiscall decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet(void)" (?decrementAndGet@AtomicInteger@atomic@concurrent@util@decaf@@QAEHXZ)
1>ActiveMQ_2010_Study.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall activemq::transport::DefaultTransportListener::~DefaultTransportListener(void)" (??1DefaultTransportListener@transport@activemq@@UAE@XZ),该符号在函数 __unwindfunclet$??0SimpleAsyncConsumer@@QAE@XZ$0 中被引用
1>SimpleAsyncConsumer.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall activemq::transport::DefaultTransportListener::~DefaultTransportListener(void)" (??1DefaultTransportListener@transport@activemq@@UAE@XZ)
1>ActiveMQ_2010_Study.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall cms::MessageListener::~MessageListener(void)" (??1MessageListener@cms@@UAE@XZ),该符号在函数 __unwindfunclet$??0SimpleAsyncConsumer@@QAE@XZ$0 中被引用
1>SimpleAsyncConsumer.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall cms::MessageListener::~MessageListener(void)" (??1MessageListener@cms@@UAE@XZ)
1>ActiveMQ_2010_Study.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall cms::ExceptionListener::~ExceptionListener(void)" (??1ExceptionListener@cms@@UAE@XZ),该符号在函数 __unwindfunclet$??0SimpleAsyncConsumer@@QAE@XZ$0 中被引用
1>SimpleAsyncConsumer.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall cms::ExceptionListener::~ExceptionListener(void)" (??1ExceptionListener@cms@@UAE@XZ)
1>SimpleAsyncConsumer.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall activemq::core::ActiveMQConnection::addTransportListener(class activemq::transport::TransportListener *)" (?addTransportListener@ActiveMQConnection@core@activemq@@QAEXPAVTransportListener@transport@3@@Z),该符号在函数 "public: void __thiscall SimpleAsyncConsumer::runConsumer(void)" (?runConsumer@SimpleAsyncConsumer@@QAEXXZ) 中被引用
1>SimpleAsyncConsumer.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: void __thiscall SimpleAsyncConsumer::runConsumer(void)" (?runConsumer@SimpleAsyncConsumer@@QAEXXZ) 中被引用
1>SimpleProducer.obj : error LNK2001: 无法解析的外部符号 "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)
1>SimpleProducer.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall cms::CMSException::CMSException(class cms::CMSException const &)" (??0CMSException@cms@@QAE@ABV01@@Z),该符号在函数 __catch$?initialize@SimpleProducer@@EAEXXZ$0 中被引用
1>SimpleProducer.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall cms::CMSException::~CMSException(void)" (??1CMSException@cms@@UAE@XZ)
1>SimpleProducer.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall decaf::lang::Thread::~Thread(void)" (??1Thread@lang@decaf@@UAE@XZ),该符号在函数 "public: void __thiscall SimpleProducer::send(char const *,int)" (?send@SimpleProducer@@QAEXPBDH@Z) 中被引用
1>SimpleProducer.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),该符号在函数 "public: void __thiscall SimpleProducer::send(char const *,int)" (?send@SimpleProducer@@QAEXPBDH@Z) 中被引用
1>SimpleProducer.obj : error LNK2019: 无法解析的外部符号 "public: __int64 __thiscall decaf::lang::Thread::getId(void)const " (?getId@Thread@lang@decaf@@QBE_JXZ),该符号在函数 "public: void __thiscall SimpleProducer::send(char const *,int)" (?send@SimpleProducer@@QAEXPBDH@Z) 中被引用
1>SimpleProducer.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall decaf::lang::Thread::Thread(void)" (??0Thread@lang@decaf@@QAE@XZ),该符号在函数 "public: void __thiscall SimpleProducer::send(char const *,int)" (?send@SimpleProducer@@QAEXPBDH@Z) 中被引用
1>C:\Users\lenovo\Documents\Visual Studio 2010\Projects\ActiveMQ\ActiveMQ Client\Debug\ActiveMQ Client.exe : fatal error LNK1120: 14 个无法解析的外部命令
1>
1>生成失败。
1>
1>已用时间 00:00:00.20
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 =====
我找到无法解析的那个符号是我已经连接了的一个库里面的 路径检查了很多遍 确定没有错 依赖项也写好了
...全文
66 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

64,637

社区成员

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

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