[xsd-users] Compiling samples on Mac OS X with Clang

Boris Kolpackov boris at codesynthesis.com
Thu May 23 18:50:36 EDT 2013


Hi Ovanes,

Ovanes Markarian <om_codesynthesis at keywallet.com> writes:
 
> was going to give XSD a try. My dev platform is Mac OS X. I am interested
> in C++/Parser with an expat binding (no Xerces). I ran the following line
> for the example located in examples/cxx/parser/hello
> 
> hello $ make XML_PARSER="expat" CXX="clang++" CPPFLAGS="-I
> /usr/local/include" LDFLAGS="-L /usr/local/lib"
> ../../../build/cxx/compilers.make:108: unknown C++ compiler signature

Stock XSD 3.3.0 doesn't recognize Clang. However, there is a patch that
adds this support:

http://www.codesynthesis.com/~boris/tmp/xsd/xsd-3.3.0-gcc-4.7-clang.patch

Simply apply it to stock xsd-3.3.0 binary distribution like this:

cd xsd-3.3.0-i686-macosx
patch -p1 <.../xsd-3.3.0-gcc-4.7-clang.patch

After that everything should build and run without any issues.

Boris



More information about the xsd-users mailing list