delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/23/18:44:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Sent: 23 Aug 2002 22:44:37 GMT
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
From: abraham AT backus DOT com
Subject: Xerces C++ support in cygwin
X-Sent-From: abraham AT backus DOT com
Date: Fri, 23 Aug 2002 15:44:35 -0700 (PDT)
Message-Id: <20020823154437.6154.h011.c000.wm@mail.backus.com.criticalpath.net>

Hello,

I've been able to get xerces c++ to build in cygwin and
have submitted a couple of patches to enable this.  I
don't know how soon these fixes will be available in a
"stable" release, but for those that really want to
give it a try, I've included some instructions below. 
This is not for the faint of heart.  I'd like to
encourage anyone else that is interested to review the
"samples" and "tests" directories and get those to
build and run.

Limitations:
1) Since this is a c++ dll, there are issues of binary
compatibility between releases of gcc and other tools. 
In other words, if you build xerces succesfully with
version 2.95.3 of gcc, it won't work to link it against
your application that is built with gcc 3.1.1 (as I've
found out).
2) I've only been able to get this to compile with gcc
2.95.2.  When I tried against 3.1.1, ld would stackdump
at the final link to create the dll.  I don't even know
if there is a gcc 3.x that has been certified to work
under cygwin anyway, although I'd like it to so that I
could use the standard c++ headers in my code :)

Getting xerces to build:
1) Create your cvs view of the xerces-c source tree
(see http://xml.apache.org/cvs.html, you want
xml-xerces, and the "c" directory of that module).
2) cd to the c/src/xercesc directory of the cvs view
3) type the following at the cygwin prompt:
> ./runConfigure -p cygwin -c gcc -x g++ -m inmem -n
socket -t native
4) then type "make"
5) after everything is finished building, type "make
install"

you should now be able to use xerces in your app
(remember to use -lxerces-c in your link, and also make
sure that /usr/local/bin is in your windows %PATH% when
you run your app)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019