You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "xinfang.yuan" <xi...@gmail.com> on 2009/06/27 06:56:01 UTC

how to uses activemq-cpp.a file to compile a new so file

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.