g++ -shared -o libTestService.so -I $AXIS2C_HOME/include/axis2-1.0/ -L $AXIS2C_HOME/lib/ -l axis2 *.c
During compiling I got several errors of the different typecastings in c and c++ and I'm not sure if the extern "C" could handle it.
Maybe I need some special arguments for the compiler?Attached you can find my service. It is a very easy one adding only two numbers. Maybe you could look inside and tell me my mistake?
I'm using AXIS2C version 1.0 Regards Michael Atanacio Reyes wrote:
I did the same and it work. the service should be compiled with c++ (or g++ in Linux) the C code should be as follow: #ifdef __cplusplus extern "C" { #endif . . //---- the C code . . #ifdef __cplusplus } #endif ----- Original Message ---- From: Michael Sutter <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, August 2, 2007 2:35:21 AM Subject: Axis2C and CPP Hello all,I have a question about AXIS2C and cpp. I have written a c service and want to access from it existing cpp code. The easiest way I think is to compile the service with a c++ compiler (like g++). The problem is the typecasting of the generated c code when compiling with g++. Also the -traditional option does not work.Does anybody have a idea how to compile it with g++ without changing the generated source code?Kind Regards Michael____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
begin:vcard fn:Michael Sutter n:Sutter;Michael org:Forschungszentrum Karlsruhe;Institute for Data Processing and Electronics adr:Hermann-von-Helmholtz-Platz 1;;Geb. 442;Eggenstein-Leopoldshafen;;76344;Germany email;internet:[EMAIL PROTECTED] tel;work:+49 7247 825676 tel;fax:+49 7247 823560 version:2.1 end:vcard
smime.p7s
Description: S/MIME Cryptographic Signature
