[xsd-users] Can not compile hello example on Mac
Boris Kolpackov
boris at codesynthesis.com
Wed Apr 1 06:48:08 EDT 2015
Hi Xiao,
Xiao Han <xiaohan at andrew.cmu.edu> writes:
> g++ -W -O3 -o driver driver.o hello.o -lxerces-c
>
> Undefined symbols for architecture x86_64:
>
> "_CFRelease", referenced from:
>
> xercesc_3_1::MacOSUnicodeConverter::upperCase(unsigned short*) in
> libxerces-c.a(MacOSUnicodeConverter.o)
You are linking to the static build of Xerces-C++ (libxerces-c.a) and
on Mac OS Xerces-C++ depends on CoreServices. Try this:
make LIBS="-framework CoreServices"
Boris
More information about the xsd-users
mailing list