activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmittal <>
Subject Re: Libraries to include while compiling my activemq-cpp code
Date Fri, 24 Apr 2009 21:05:29 GMT

> It looks like its not using the correct version of APR, which is odd.
> The `apr_pool_create_unmanaged_ex' didn't exist until APR 1.3 so if
> that's not being found then it seems as if you are getting an old APR.
> Have you tried linking against the APR .so files you built instead of
> the libtool .la files.
> Regards
> Tim.

I changed the Makefile to...

ifeq ($(UNAME), Linux)
CPPLDFLAGS   = -pipe -fPIC -O3 -m64
CPPFLAGS     = -I. -I/RSIGrid/amq/activemq-cpp-2.2.5/src/main
-I/RSIGrid/amq/apr-1.3.3/include -c
LDFLAGS      = -L/usr/local/lib -L/usr/local/apr/lib
-L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/ -m64  
CC = g++
LDLIBS = -lpthread -lactivemq-cpp -lapr-1 -laprutil-1 -luuid -lrt -lcrypt 
-lpthread -ldl

and it built successfully. However, when I try to execute the binary, I get
the following error...

$ ./register_ticker 
./register_ticker: error while loading shared libraries: cannot open shared object file: No such file or

thanks again for your help.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message