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

Wesley Peters Wesley.Peters at tachyon.com
Thu May 23 18:55:39 EDT 2013


On 5/23/13 3:50 PM, "Boris Kolpackov" <boris at codesynthesis.com> wrote:

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.


Nice!  Otherwise, you can just compile with GCC on OS X, right?

________________________________

Confidentiality Notice: The information contained in this electronic e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and is confidential and/or privileged. If you and we have a confidentiality agreement or other non-disclosure obligations between us, this Notice shall be deemed to mark and identify the content of this email and any attachments as confidential and proprietary. If any reader of this communication is not the intended recipient, unauthorized use, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you.

IRS Circular 230 Disclosure: To ensure compliance with requirements imposed by the IRS, please be advised that any U.S. federal tax advice contained in this communication (including any attachments) is not intended or written to be used or relied upon, and cannot be used or relied upon, for the purpose of (i) avoiding penalties under the Internal Revenue Code, or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.

E-mail is susceptible to data corruption, interception, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.



More information about the xsd-users mailing list