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 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/
-L/RSIGrid/amq/apr-util-1.3.4/xml/expat/lib/ -m64  
CC = g++
LDLIBS = -lactivemq-cpp -luuid -lrt -lcrypt  -lpthread -ldl

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

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


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

View raw message