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/why-.lib-is-needed--tp28232816p28232816.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to