Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 25156 invoked from network); 25 Jun 2009 00:00:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 00:00:23 -0000 Received: (qmail 31178 invoked by uid 500); 25 Jun 2009 00:00:33 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 31116 invoked by uid 500); 25 Jun 2009 00:00:33 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 31106 invoked by uid 99); 25 Jun 2009 00:00:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 00:00:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 00:00:22 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MJcNg-0006rc-Kf for users@activemq.apache.org; Wed, 24 Jun 2009 16:59:56 -0700 Message-ID: <24194914.post@talk.nabble.com> Date: Wed, 24 Jun 2009 16:59:56 -0700 (PDT) From: pclovec To: users@activemq.apache.org Subject: Re: create a new project and refer to ActiveMQ-CPP files. Compile is fail In-Reply-To: <24194844.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pclovec@gmail.com References: <24192861.post@talk.nabble.com> <1245885176.8387.32.camel@localhost.localdomain> <24194618.post@talk.nabble.com> <1245886466.8387.34.camel@localhost.localdomain> <24194844.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org fix. not all HOHO thanks pclovec wrote: > > thanks very much. i got it . small question . in source code folder have > more sub folder . each sub folder include one .libs folder ,, i can saw > the libactivemq-cpp.so and so.9 ,..so.9.0.. file in .../src/main/.libs > folder. > > i just want to ask which folder do i need add into ld.so.conf file . or > need to add all libs folder? seems need to add all .libs folder :) > > > thanks > > > > Timothy Bish wrote: >> >> On Wed, 2009-06-24 at 16:26 -0700, pclovec wrote: >>> 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 >>> # >> >> Most likely the activemqcpp libs location is not in your LD_LIBRARY_PATH >> or ld.so.conf file depending on your distro. >> >> >> >>> >>> 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.. >>> >> >> You can link against the libactivemqcpp.a static lib to have it built >> into you application. >> >>> >>> 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-tp24192861p24194914.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.