hi, Tim thanks, yes at first time i didn't link this file . Eclipse CDT link file is some difference . i only input the activemq-cpp is be fine . if i input /usr/.../libactivemq-cpp.so file then it will give me can't find out the so file.. sigh...
now i have add link the libactivemq-cpp.so file . it compile succeeful. but when i try to running the test file it show me # ./testcpp1 ./testcpp1: error while loading shared libraries: libactivemq-cpp.so.9: cannot open shared object file: No such file or directory # by the way ,if i don't want to refer to so file . i would like refer the activemq-cpp o file or lib file . what can i do. could you can give me some advice sorry i just a new cpp developer.. thanks Timothy Bish wrote: > > On Wed, 2009-06-24 at 14:02 -0700, pclovec wrote: >> hi, All >> >> i download the activemq-cpp 3.0 source to my local and i can compile on >> my >> machine . ...make..make install and running the example is well. >> >> now i create a new c++ project on eclipse . and just wrote a sample code. >> and include the activemq-cpp src folder ..../src/main/ all .h file and >> i >> have linked some lib folders. ,apr ,apr-util.. i try to build project >> is >> show me >> ---------------------------------------------------- >> Description Resource Path Location Type >> undefined reference to >> `activemq::core::ActiveMQConnectionFactory::ActiveMQConnectionFactory(std::basic_string, >> std::allocator > const&, std::basic_string, std::allocator > const&, >> std::basic_string, std::allocator > const&)' Simple.cpp testcpp1/src >> line >> 152 C/C++ Problem >> >> Description Resource Path Location Type >> undefined reference to >> `activemq::library::ActiveMQCPP::initializeLibrary()' >> SimpleAsyncConsumer.cpp testcpp1/src line 269 C/C++ Problem >> >> >> Description Resource Path Location Type >> undefined reference to >> `activemq::library::ActiveMQCPP::shutdownLibrary()' >> SimpleAsyncConsumer.cpp testcpp1/src line 334 C/C++ Problem >> >> ------------------------------------------------------------------------------ >> so i'm confused for it. do i miss some lib files . any help >> >> thanks >> >> > > Sounds like you aren't linking to the libactivemqcpp.so. > > Regards > Tim. > > > -- > Tim Bish > http://fusesource.com > http://timbish.blogspot.com/ > > > > > -- View this message in context: http://www.nabble.com/create-a-new-project-and-refer-to-ActiveMQ-CPP-files.-Compile-is-fail-tp24192861p24194618.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.