activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmittal <nmit...@rblt.com>
Subject Re: Libraries to include while compiling my activemq-cpp code
Date Fri, 24 Apr 2009 20:52:00 GMT



Timothy Bish wrote:
> 
> Besides the activemq-cpp lib you need:
> 
> libapr-1
> libaprutil-1
> 
> and whatever libs that the APR scripts tell you
> apr-1-config --libs
> apu-1-config --libs
> 
> Regards
> Tim.
> 
> 
> 

Tim thanks. My Makefile looks like this...
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/RSIGrid/amq/apr-1.3.3/libapr-1.la
-L/RSIGrid/amq/apr-util-1.3.4/libaprutil-1.la
-L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/libexpat.la -m64  
CC_OUTPUT_FLAG = -o
CC = g++
LDLIBS = -lactivemq-cpp -luuid -lrt -lcrypt  -lpthread -ldl
endif

however when I try to make, i get...
g++ -pipe -fPIC -O3 -m64 -L/usr/local/lib
-L/RSIGrid/amq/apr-1.3.3/libapr-1.la
-L/RSIGrid/amq/apr-util-1.3.4/libaprutil-1.la
-L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/libexpat.la -m64   -o
/RSIGrid/register_ticker RegisterTicker.o -lpthread -lactivemq-cpp -luuid
-lrt -lcrypt  -lpthread -ldl
/usr/local/lib/libactivemq-cpp.so: undefined reference to
`apr_pool_create_unmanaged_ex'
collect2: ld returned 1 exit status
make: *** [/RSIGrid/register_ticker] Error 1


what am I missing. I appreciate any help on this.

thanks
Nishant



-- 
View this message in context: http://www.nabble.com/Libraries-to-include-while-compiling-my-activemq-cpp-code-tp23223505p23224695.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message