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

Reply via email to