axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martina08 <martin.willitz...@gmx.de>
Subject compiling with gcc
Date Wed, 20 Aug 2008 10:43:51 GMT

I want to build the math-example. My command is like the manual:
gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
-laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread
-laxis2_http_sender -laxis2_http_receiver math_client.c ldl -Wl,--rpath
-Wl,$AXIS2C_HOME/lib

There is the error "Cannot find -laxutil ". I know the Libraries exist and I
set the $AXIS2C_HOME/lib to the LD_LIBRARY_PATH but this dont solve the
problem. In which folder I must execute this command?
Have i forget something?
When i use the complete Path to the libs like:
gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
-L$AXIS2C_HOME/lib/libaxutil.so -L$AXIS2C_HOME/lib/libaxis2_axiom.so
...........
then the compiler find the libraries(there is no error) but then i get much
more "undefined reference to"-errors in function main like:
undefined reference to axutil_env_create_all
undefined reference to axutil_strcmp
.
.
.
Does somebody know where is my mistake?
-- 
View this message in context: http://www.nabble.com/compiling-with-gcc-tp19066875p19066875.html
Sent from the Axis - C++ - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message