[xsd-users] cannot compile hello cygwin

Schmilinsky, Remsy Remsy.Schmilinsky at ccra-adrc.gc.ca
Wed Aug 9 11:49:19 EDT 2006


It finally worked, thanks ! but I still got these messages...maybe they
could dissapear by rebuilding xsd.exe again with the new compilation of
xerces. I'll try later...

Remsy

$ make CPPFLAGS="-I ~/xerces-c-src_2_7_0/include" LDFLAGS="-L
~/xerces-c-src_2_7_0/lib"
../../../../bin/xsd cxx-tree  hello.xsd
g++ -I ~/xerces-c-src_2_7_0/include -I../../../../libxsd -W -Wall -c
driver.cxx -o driver.o
g++ -I ~/xerces-c-src_2_7_0/include -I../../../../libxsd -W -Wall -c
hello.cxx -o hello.o
g++ -W -Wall -L ~/xerces-c-src_2_7_0/lib -o driver driver.o hello.o
-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::fgDOMComments       by linking to
__imp___ZN11xercesc_2_76XMLUni13fgDOMCommentsE (auto-im
port)
Info: resolving xercesc_2_7::XMLUni::fgDOMDatatypeNormalization       by
linking to __imp___ZN11xercesc_2_76XMLUni26fgDOMDatat
ypeNormalizationE (auto-import)
Info: resolving xercesc_2_7::XMLUni::fgDOMEntities       by linking to
__imp___ZN11xercesc_2_76XMLUni13fgDOMEntitiesE (auto-im
port)
Info: resolving xercesc_2_7::XMLUni::fgDOMNamespaces       by linking to
__imp___ZN11xercesc_2_76XMLUni15fgDOMNamespacesE (aut
o-import)
Info: resolving xercesc_2_7::XMLUni::fgDOMWhitespaceInElementContent
by linking to __imp___ZN11xercesc_2_76XMLUni31fgDOM
WhitespaceInElementContentE (auto-import)
Info: resolving xercesc_2_7::XMLUni::fgDOMValidation       by linking to
__imp___ZN11xercesc_2_76XMLUni15fgDOMValidationE (aut
o-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::fgXercesUserAdoptsDOMDocument
by linking to __imp___ZN11xercesc_2_76XMLUni29fgXerce
sUserAdoptsDOMDocumentE (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)

~/xsd-2.2.0-i686-windows/examples/cxx/tree/hello
$ ls
README      driver.exe  hello.cxx  hello.o       hello.xml  makefile
driver.cxx  driver.o    hello.hxx  hello.vcproj  hello.xsd
makefile.vc-7

~/xsd-2.2.0-i686-windows/examples/cxx/tree/hello
$ export PATH=~/xerces-c-src_2_7_0/lib:$PATH

~/xsd-2.2.0-i686-windows/examples/cxx/tree/hello
$ ./driver hello.xml
Hello, sun!
Hello, moon!
Hello, world!

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: August 9, 2006 11:28 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:

> Ok, it compiles and outputs the lines below. When I run driver.exe, it
> doesn't do anything. Maybe I missed something...

I tried to build Xerces-C++ 2.7.0 for Cygwin and then build examples
from the xsd-2.2.0 distribution for Windows. Everyhting worked fine
with examples printing what they were supposed to print. Here is a
step-by-step instructions. Can you try them and see if it works for
you:

1. Download, unpack and build Xerces-C++ 2.7.0:

$ cd ~
$ wget
http://www.apache.org/dist/xml/xerces-c/source/xerces-c-src_2_7_0.tar.gz
$ gzip -dc xerces-c-src_2_7_0.tar.gz | tar x
$ export XERCESCROOT=~/xerces-c-src_2_7_0
$ cd xerces-c-src_2_7_0/src/xerces
$ ./runConfigure -p cygwin -c gcc -x g++
$ make


2. Download, unpack and build XSD 2.2.0 examples:

$ cd ~
$ wget
http://codesynthesis.com/download/xsd/2.2/windows/i686/xsd-2.2.0-i686-wi
ndows.zip
$ unzip xsd-2.2.0-i686-windows.zip
$ cd xsd-2.2.0-i686-windows/examples/cxx/tree/hello
$ make CPPFLAGS="-I ~/xerces-c-src_2_7_0/include" LDFLAGS="-L
~/xerces-c-src_2_7_0/lib"
$ export PATH=~/xerces-c-src_2_7_0/lib:$PATH
$ ./driver hello.xml


For me the last line prints:

Hello, sun!
Hello, moon!
Hello, world!


hth,
-boris




More information about the xsd-users mailing list