[xsd-users] cannot compile hello cygwin

Boris Kolpackov boris at codesynthesis.com
Wed Aug 9 11:27:42 EDT 2006


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-windows.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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060809/2662d9e1/attachment.pgp


More information about the xsd-users mailing list