Hi Seneka, Yea, We should try that, Anyway we have to convert all the test cases (not the generated code) to compile with c++ as well,
Yesterday I had some free time to convert some and fixed some casting issues. Dimuthu On Jan 6, 2008 2:51 AM, Senaka Fernando <[EMAIL PROTECTED]> wrote: > > Hi Trasca, > > > > I m mostly doing WSDL2C generated code tests only in linux and in c, > > So until I can test it in windows, It would be really helpful if you > > can point out the casting errors you met, > > > > If your error come from following line, > > > > data_source = (axiom_data_source_t > > *)axiom_node_get_data_element(current_node, env); > > > > It s already fixed in the nightly build[1]. > > > > And AFAIK there are no run-time failures reported recently due to > > casting issues. So it s worth doing a try. > > > > Thanks > > Dimuthu > > Hi Dimuthu, > > Why can't we try compiling axis2/C as C++ code on linux too; using 'gcc -x > c++'? > > Regards, > Senaka > > > > > > > > [1] http://people.apache.org/dist/axis2/nightly/ > > > > > > > > On Jan 5, 2008 6:59 PM, Trasca Virgil <[EMAIL PROTECTED]> wrote: > >> Hello, > >> > >> Thank you for the help. I did not added explicit cast from 2 > >> reasons: > >> > >> 1) I would prefer not to touch generated code. Also I was sure I was not > >> the first one that I tried to use wsdl2c generated code from C++ so I > >> was sure the solution is not to add explicit cast by hand.(maybe a > >> compiler switch??) > >> > >> 2) I read previously that somebody added explicit cast by hand and it > >> was compiling well but it was failing at run-time. > >> > >> Because of that 2 reasons I preferred to wait some answers from the > >> axis2c mail-list. > >> > >> But I will also try explicit cast as it is a quick way to see if it is > >> working or not. > >> > >> Thank you, > >> Virgil > >> > >> > >> ----- Original Message ---- > >> From: Mark Nüßler <[EMAIL PROTECTED]> > >> To: Apache AXIS C User List <axis-c-user@ws.apache.org> > >> Sent: Saturday, January 5, 2008 3:05:03 PM > >> Subject: Re: Issue compiling Axis2C client with VS2005/C++ > >> > >> Hello Virgil, > >> > >> have you tried an explicit cast ? > >> > >> have a look at : > >> http://www.mail-archive.com/axis-c-user@ws.apache.org/msg02568.html > >> > >> mfg derMark > >> > >> > >> Trasca Virgil schrieb: > >> > Hi, > >> > > >> > I have an issue trying to compile the Axis2C client code generated > >> with wsdl2c in VS2005 & C++ environment. I know that Axis2C code is > >> only C but I need to compile it in an C++ environment. > >> > > >> > When I try to compile as C++ in Visual Studioa 2005 I get following > >> error messages: > >> > > >> > error C2440: '=' : cannot convert from 'void *' to > >> 'axiom_data_source_t *' > >> > > >> > There is an option in VS2005 if the program should be compiled as C++ > >> or as C and if I change to C this error disapears but I need to > >> compile as C++ as my project will be C++. > >> > > >> > How can I compile axis2c client code as C++ in Visual Studio? > >> > > >> > Thank you, > >> > Virgil > >> > > >> > > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >> > > >> > > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]