activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Compiling C++
Date Thu, 05 Mar 2009 12:10:50 GMT
On Thu, 2009-03-05 at 11:35 +0100, Jason Lentink wrote:
> Hi All,
> 
> I try to compile a simple producer my self outside the example dir but  
> for some reason it's now working.
> I properly do something wrong.
> 
> The command I run is:
> g++ -I/opt/local/include/apr-1 -I/usr/include/apr-1 -I. -I/opt/local/ 
> include/apr-1 -I/usr/include/apr-1 -I/usr/local/include/activemq- 
> cpp-2.2.4/ -L/usr/local/lib -L/usr/lib main.cpp -lpthread -laprutil-1 - 
> lsqlite3 -lexpat -liconv -o test
> 
> The error that i get is:
> Undefined symbols:
>    "decaf::lang::Thread::getId()", referenced from:
>        SimpleProducer::run()      in ccVVQAI1.o
>    "decaf::lang::Integer::toString(int)", referenced from:
>        SimpleProducer::run()      in ccVVQAI1.o
>     
> "activemq 
> ::core 
> ::ActiveMQConnectionFactory 
> ::ActiveMQConnectionFactory(std::basic_string<char,  
> std::char_traits<char>, std::allocator<char> > const&,  
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >
 
> const&, std::basic_string<char, std::char_traits<char>,  
> std::allocator<char> > const&)", referenced from:
>        SimpleProducer::run()      in ccVVQAI1.o
>    "typeinfo for decaf::lang::Exception", referenced from:
>        typeinfo for decaf::lang::exceptions::NumberFormatExceptionin  
> ccVVQAI1.o
>    "decaf::lang::Integer::parseInt(std::basic_string<char,  
> std::char_traits<char>, std::allocator<char> > const&)", referenced
 
> from:
>        _main in ccVVQAI1.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> 
> the library is install in /usr/local/
> 
> tnx

I don't see the activemq-cpp lib on your link line, might want to add
that and see if it fixes the issue.

Regards
Tim.



-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/




Mime
View raw message