activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xinfang.yuan" <xinfang.y...@gmail.com>
Subject how to uses activemq-cpp.a file to compile a new so file
Date Sat, 27 Jun 2009 04:56:01 GMT

hi, 

now i want to create a new so file by myself and this so file will be refer
to activemq-cpp.a file,becuase i would like my so file include activemq-cpp
library

i have uses automake to compile the so file it's seems can compiled libmy.so
file but i try to wrote a sample code to test my libmy.so file , the test
code cant compile i need to refer to libmy.so and activemq-cpp.so file both
,  it can work ,if i only refer to libmy.so file it can't compile .


this is Makefile.am 

AUTOMAKE_OPTIONS = foreign
INCLUDES = -I./include/
lib_LTLIBRARIES = libMQClient.la
libMQClient_la_SOURCES= MQPublisherConnection.cpp MQPublisher.cpp 
MQPublisher.h MQPublisherConnection.h
libMQClient_la_CXXFLAGS = -lpthread
libMQClient_la_LIBADD = ./lib/libactivemq-cpp.a
CXXFLAGS = @CXXFLAGS@  -fPIC -shared

do i miss something ,thanks



-- 
View this message in context: http://www.nabble.com/how-to-uses-activemq-cpp.a-file-to-compile-a-new-so-file-tp24230478p24230478.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message