Hi,
thank you for the advice. I compiled now xerces-c-src_2_7_0.tar.gz
with cygwin make and I deinstalled xerces-2.5 from cygwin.
Next step was to install Xalan.
I set XERCESCROOT=/usr/src/xerces-c-src_2_7_0
and
XALANCROOT=C:\cygwin\usr\src\xml-xalan\c
and for Xalan compilation I had to use the Mingw-Make.

Why are you using a Unix-style path for XERCESCROOT, but a DOS-style path for XALANCROOT? That doesn't make any sense.

Also, please use the regular Cygwin make, not the Mingw make. My previous post was clear that I don't think using the Mingw make utility is a good idea.


Compile started but I got an error in TestXPath/testXParg.cpp and other sources that
xalan/Include/PlatformDefinitions.hpp
cannot be found.

The file exist in src/xalanc/Include but it seems not found(wrong
Inlucde path).
Do I have to adopt some Include paths ?

Thomas

I could resolve the include errors by adding
-z "-I$XALANCROOT/src -I$XALANCROOT/nls/include"
to runConfigure


This should not be necessary if you set XALANCROOT properly.

However now I get errors from STL which seems related to the used gcc
version:

/usr/llib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/vector.tcc:384:
error: expected unqualified-id before `(` token

Which version of gcc did you use ?


The same as you -- 3.4.4.

This problem I fixed by removing the std:: prefix from the mentioned
lines(e.g. vector.tcc).

Why are you modifying the system header files? That is absolutely the wrong thing to do.


But now I get a  new build error:
g++ -fpermissive -IC:\cygwin\usr\src\xml-xalan\c/src
-IC:\cygwin\usr\src\xml-xal an\c/nls/include -O -DNDEBUG
-fno-elide-constructors    C:\cygwin\usr\src\xm
l-xalan\c/src/xalanc/TestXPath/testXPath.cpp lib ../../bin/testXPath
-o testXP ath g++: lib: No such file or directory
C:\cygwin\bin\make.exe: *** [testXPath] Error 1

Can someone give me a hint where in the Makefiles the "lib" entry is set
I did not found it.

I think using DOS-style paths is what's causing problems. Please use the same style path for XALANCROOT as you used for XERCESCROOT. It could also be that your Cygwin install is broken, but if you built Xerces-C successfully, it's probably OK.

Also, please do not CC me on messages posted to the list -- I'm already subscribed, and I don't need an extra copy of your email.

Dave

Reply via email to