>-----Original Message----- >From: Patrick Cosmo [mailto:pco...@incognito.com] >The following generated code is not valid C code because it >does not declare all variables at the top of the scope: > >------------- code generated from WSDL2C starts here >----------------------------- >else >{ > axiom_node_t *text_node = NULL; > text_node = axiom_node_get_first_child(parent, env); > axiom_text_t *text_element = NULL; > >------------- code generated from WSDL2C ends here >----------------------------- > > >The last line above is wrong - you can't declare a variable at >that point in C.
Yes you can, in modern variants of C. Are you using an old compiler? Note that there are probably other features of modern C that are used in the code, such "//" style comments, that old compiler would complain about. What vintage of compilers is axis2/c targeting/supporting? eric