[xsd-users] cannot compile hello cygwin
Schmilinsky, Remsy
Remsy.Schmilinsky at ccra-adrc.gc.ca
Tue Aug 8 10:45:04 EDT 2006
Ok, it compiles and outputs the lines below. When I run driver.exe, it
doesn't do anything. Maybe I missed something...
$ g++ -o driver driver.cxx -I/usr/src/xsd-2.2.0/libxsd
-I/usr/local/include -L/usr/local/lib -lxerces-c
Info: resolving xercesc_2_7::XMLUni::fgXercescDefaultLocale by
linking to __imp___ZN11xercesc_2_76XMLUni22fgXercescDefau
ltLocaleE (auto-import)
Info: resolving xercesc_2_7::XMLPlatformUtils::fgMemoryManager by
linking to __imp___ZN11xercesc_2_716XMLPlatformUtils1
5fgMemoryManagerE (auto-import)
Info: resolving xercesc_2_7::XMLUni::fgSAX2CoreNameSpaces by
linking to __imp___ZN11xercesc_2_76XMLUni20fgSAX2CoreNameSp
acesE (auto-import)
Info: resolving xercesc_2_7::XMLUni::fgSAX2CoreNameSpacePrefixes
by linking to __imp___ZN11xercesc_2_76XMLUni27fgSAX2Cor
eNameSpacePrefixesE (auto-import)
Info: resolving xercesc_2_7::XMLUni::fgXercesValidationErrorAsFatal
by linking to __imp___ZN11xercesc_2_76XMLUni30fgXerc
esValidationErrorAsFatalE (auto-import)
Info: resolving xercesc_2_7::XMLUni::fgSAX2CoreValidation by
linking to __imp___ZN11xercesc_2_76XMLUni20fgSAX2CoreValida
tionE (auto-import)
Info: resolving xercesc_2_7::XMLUni::fgXercesSchema by linking to
__imp___ZN11xercesc_2_76XMLUni14fgXercesSchemaE (auto-
import)
Info: resolving xercesc_2_7::XMLUni::fgXercesSchemaFullChecking by
linking to __imp___ZN11xercesc_2_76XMLUni26fgXercesSc
hemaFullCheckingE (auto-import)
Info: resolving
xercesc_2_7::XMLUni::fgXercesSchemaExternalSchemaLocation by
linking to __imp___ZN11xercesc_2_76XMLUni36
fgXercesSchemaExternalSchemaLocationE (auto-import)
Info: resolving
xercesc_2_7::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation
by linking to __imp___ZN11xercesc_2
_76XMLUni47fgXercesSchemaExternalNoNameSpaceSchemaLocationE
(auto-import)
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: August 8, 2006 10:27 AM
To: Schmilinsky, Remsy
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] cannot compile hello cygwin
Hi Remsy,
Schmilinsky, Remsy <Remsy.Schmilinsky at ccra-adrc.gc.ca> writes:
> Hi Boris. I rebuilt xerces as you recommended. Do I need to recreate
the
> rest of the packages too? I noticed it built the dll, but not the
static
> library.
No, you do not need to rebuild XSD. Just use this version of Xerces-C++
to build examples. The reason you need to link differently-build
Xerces-C++ to xsd and the examples is because xsd was built as Mingw
(native Win32) executable while your examples will be Cygwin
executable.
You may want to copy Xerces-C++ headers from the include/ directory to
/usr/local/include and .lib/.dll from lib/ to /usr/local/lib. This way
g++ should find them automatically.
hth,
-boris
More information about the xsd-users
mailing list