On Thu, 2012-08-16 at 23:20 -0700, mkeysman wrote: > I have tried to incorporate the simpleproducer.cpp program into another c++ > program. Compiling in windows fails due to a trio of unresolved external > symbol errors: > > 1>libsvmactivemqSink.obj : error LNK2019: unresolved external symbol > "public: __thiscall cms::CMSException::CMSException(class cms::CMSException > const &)" (??0CMSException@cms@@QAE@ABV01@@Z) referenced in function > __catch$?fetchConfig@cLibsvmActiveMQSink@@MAEXXZ$0 > > 1>libsvmactivemqSink.obj : error LNK2019: unresolved external symbol > "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) > referenced in function "protected: virtual void __thiscall > cLibsvmActiveMQSink::fetchConfig(void)" > (?fetchConfig@cLibsvmActiveMQSink@@MAEXXZ) > > 1>libsvmactivemqSink.obj : error LNK2001: unresolved external symbol > "public: virtual __thiscall cms::CMSException::~CMSException(void)" > (??1CMSException@cms@@UAE@XZ) > > I think I understand that the problem is in the lib dependencies. I have > made the project dependent on > apr-1.lib and aprutil-1.lib, but am not understanding what, if any, other > libraries are needed. If someone could point me in the right direction, it > would be greatly appreciated. >
You also need to be dependent on the ActiveMQ-CPP libs. > mkeysman > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/compiling-an-activemq-provider-in-c-tp4655229.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Tim Bish Sr Software Engineer | FuseSource Corp tim.b...@fusesource.com | www.fusesource.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/