On Wed, Aug 20, 2008 at 5:22 PM, Martina08 <[EMAIL PROTECTED]> wrote:
> > hi, > yes i have set my $AXIS2C_HOME variable. I go over the manuals from where i > have the gcc-command. > But i tried to compile the math example and not the hello example. I go to > folder $AXIS2C_HOME/samples/client/math. There are the 3 Files, which i > want to compile and link. The files are: > axis2_math_stub.c > axis2_math_stub.h > math_client.c > Must i include the stub files (.c and .h) into the command? Yes you do, seems like you have missed what is at the end of the command from the manual. -Rajika > I want to have > an executable File, which i can then use with the axis2 server... > > thanks for the answers... > salute > > > > Martina08 wrote: > > > > 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-tp19066875p19067851.html > Sent from the Axis - C++ - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://wso2.org/ http://llvm.org/ http://osdev.org/