I don't have access to my Visual Studio project files right now but I think that you should be linking against the lib file from the DLL build which is activemq-cpp.lib. Then when your application runs you will need to have the activemq-cpp.dll on the PATH.
Regards Tim. On Tue, Apr 13, 2010 at 12:40 PM, opernas <[email protected]> wrote: > > In windows with VS 2005 I've compiled all apr utils and activemq and all > went > fine. Now Im running my code and while it is linking I see: > > Error 1 error LNK2019: unresolved external symbol "public: static > void > __cdecl activemq::library::ActiveMQCPP::initializeLibrary(void)" > (?initializelibr...@activemqcpp@libr...@activemq@@SAXXZ) referenced in > function "public: __thiscall AMQConsumer::AMQConsumer(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 &,class std::basic_string<char,struct > std::char_traits<char>,class std::allocator<char> > const &,bool,bool)" > (??0AMQConsumer@@q...@abv?$basic_string@du?$char_tra...@d@std@ > @v?$alloca...@d@2@@std@@000...@z) > AMQConsumer.obj > > Error 2 error LNK2019: unresolved external symbol "public: static > void > __cdecl activemq::library::ActiveMQCPP::shutdownLibrary(void)" > (?shutdownlibr...@activemqcpp@libr...@activemq@@SAXXZ) referenced in > function "public: void __thiscall AMQConsumer::close(void)" > (?cl...@amqconsumer@@QAEXXZ) AMQConsumer.obj > > > ... and more.... > > Do I need to put libactivemq-cpp.lib into the project? I wouldn't want to > use statics library, are there any problem with my compilation? If I put in > additional dependencies this libs:ws2_32.lib libapr-1.lib libaprutil-1.lib > libactivemq-cpp.lib, all goes fine, any idea? > > > > > > -- > View this message in context: > http://old.nabble.com/ActiveMQ-CPP-why-.lib-is-needed--tp28232816p28232816.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >
