[xsd-users] cxx-tree Hello example compilation problem on AIX 5.3 using XL C++ v7

Juan Pablo Perez juanpablo.perez at gmail.com
Fri Aug 28 14:52:22 EDT 2009


Boris,

Thanks for the REALLY quick reply.

I've done steps 1 to 4.
I have xerces headers and libs and XSD headers copied over to
/usr/include and /usr/lib (installed both) and the enviroment
variables for includes and libs are ok.
XL C++ is v7.0
I'm trying with:

xlC -c hello.cxx

Unfortunatly I can't try gmake since it's not available on this server.
Regards.

Juan

On Fri, Aug 28, 2009 at 3:49 PM, Boris Kolpackov<boris at codesynthesis.com> wrote:
> Hi Juan,
>
> Juan Pablo Perez <juanpablo.perez at gmail.com> writes:
>
>> Then, when I try to compile hello.cxx into hello.o using xlC, I get a
>> LOT of errors, starting with this:
>
> I just tried to reproduce this but everything is working for me. My
> setup is:
>
> AIX 5.3
> IBM XL C/C++ Enterprise Edition V7.0
> Version: 07.00.0000.0013
>
> I did the following:
>
> 1. Download xerces-c-3.0.1-powerpc-aix-xlc-7.0.tar.gz from Xerces-C++ website
> 2. Download xsd-3.2.0-powerpc-aix.tar.gz from Code Synthesis website
> 3. Unpack the two archives
> 4. cd xsd-3.2.0-powerpc-aix/examples/cxx/tree/hello
> 5. gmake CPPFLAGS=-I.../xerces-c-3.0.1-powerpc-aix-xlc-7.0/include LDFLAGS=-L.../xerces-c-3.0.1-powerpc-aix-xlc-7.0/lib
>
> Which version of XL C++ are you using? What command line did you use
> to build the hello example? Do you get the same error if you try the
> above?
>
>
>> "/usr/include/xsd/cxx/tree/exceptions.hxx", line 48.13: 1540-0121 (S)
>> A template cannot have "C" linkage.
>
> This looks like system/compiler header issue. Perhaps missing '}'
> after 'extern "C" {'.
>
> Boris
>




More information about the xsd-users mailing list