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

Boris Kolpackov boris at codesynthesis.com
Fri Aug 28 14:49:23 EDT 2009


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