RE: Problem with cygwin xerces-2.6

2004-12-02 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of mchojrin
 Sent: 02 December 2004 13:09

   I'm new to the list, so I don't really know how to post in order to
 follow a conversation. I'm reading these emails through the digest, if
 anyone can help me here, that would be great too.

  There's no way you can post a reply to a digest and have it directed as a
reply to one of the individual mails in that digest.  (Well, you could, if
your mailer software allowed you to specify References: and In-Reply-To:
headers manually, and if you went to the web archive and looked up the
Msg-ID of the message you were replying to and cut and pasted it into the
headers, but that seems like a lot of trouble to me.)  A simple answer would
be to change to subscription by individual mails, or perhaps to read in
digest mode, but post replies through gmane.


   Anyway, I finally solved my problem by looking at the 
 makefiles for the
 xerces examples and eventually got to the same conclusion Dave points
 out in his reply. But now the question I have is this: is this ld
 limitation (putting the -l option after all the .o files) only for the
 cygwin implementation? Because when I run the same command on a Linux,
 it doesn't matter the options order, and by the way in the 
 man pages for
 ld there's nothing about placing the -l option at the end of 
 the line...

  I dunno if it says so explicitly, but look at the documentation for the
--start-group and --end-group options; that makes it clear that it's a known
issue with the way ld operates.  It may well be that someone has fixed it
recently and that the version of ld on your linux box is based on a more
recent binutils release than the cygwin one.  Cygwin comes with:

[EMAIL PROTECTED] /artimi/firmware ld -V
GNU ld version 2.15.91 20040725
  Supported emulations:
   i386pe
[EMAIL PROTECTED] /artimi/firmware

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Problem with cygwin xerces-2.6

2004-12-01 Thread mchojrin
Hi:

  I'm developing a c++ application which uses xerces-c2.6
  It works just fine on the Linux Platform, but when I try to make the
binary file under cygwin I get some errors regarding the linking of the
xerces library. I've compiled the sources for the xerces lib following
the instructions on the website and all of the examples compile  run
fine.

  Here's the Makefile I'm using:

CC=g++
LIB_PATH=/home/mchojrin/xerces-c-src_2_6_0/Lib
LIB_NAME=xerces-c
BIN_NAME=main

all: soapC.o soapClient.o stdsoap2.o xmlconfig.o extraconfig.o
actionexecutor.o agentconfig.o action.o agent.o module.o serversock.o
dbfile.o parameter.o command.o actionresult.o serverinterface.o main.o

$(CC) -D__CYGWIN__ -o$(BIN_NAME) -L$(LIB_PATH) -L/usr/lib -l$(LIB_NAME)
xmlconfig.o extraconfig.o actionexecutor.o agentconfig.o action.o agent.o
module.o serversock.o dbfile.o parameter.o command.o serverinterface.o
actionresult.o soapC.o soapClient.o stdsoap2.o main.o


.cpp.o:
$(CC) -w -O -DAPP_NO_THREADS -DXML_USE_NO_THREADS -c -D__CYGWIN__ -I.
-I/include $

clean:
rm *.o

  Can anybody tell me what I'm doing wrong? Thanks!




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Problem with cygwin xerces-2.6

2004-12-01 Thread Dave Korn
 -Original Message-
 From: cygwin-owner On Behalf Of mchojrin
 Sent: 01 December 2004 17:31

   I'm developing a c++ application which uses xerces-c2.6
   It works just fine on the Linux Platform, but when I try to make the
 binary file under cygwin I get some errors regarding the 
 linking of the
 xerces library. I've compiled the sources for the xerces lib following
 the instructions on the website and all of the examples compile  run
 fine.
 
   Here's the Makefile I'm using:
 
 CC=g++
 LIB_PATH=/home/mchojrin/xerces-c-src_2_6_0/Lib
 LIB_NAME=xerces-c
 BIN_NAME=main
 
 all: soapC.o soapClient.o stdsoap2.o xmlconfig.o extraconfig.o
 actionexecutor.o agentconfig.o action.o agent.o module.o serversock.o
 dbfile.o parameter.o command.o actionresult.o serverinterface.o main.o
 
   $(CC) -D__CYGWIN__ -o$(BIN_NAME) -L$(LIB_PATH) 
 -L/usr/lib -l$(LIB_NAME)
 xmlconfig.o extraconfig.o actionexecutor.o agentconfig.o 
 action.o agent.o
 module.o serversock.o dbfile.o parameter.o command.o serverinterface.o
 actionresult.o soapC.o soapClient.o stdsoap2.o main.o
 
 
 .cpp.o:
   $(CC) -w -O -DAPP_NO_THREADS -DXML_USE_NO_THREADS -c 
 -D__CYGWIN__ -I.
 -I/include $
 
 clean:
   rm *.o
 
   Can anybody tell me what I'm doing wrong? Thanks!

  Not telling us anything about what the actual error that occurs is, for
starters.

  However my guess is that you really want to have the -l$(LIB_NAME) option
at the very end of the link command line.  Libraries need to be specified
_after_ all the .o files that reference them; that's a limitation of ld.

cheers, 
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problem with cygwin xerces-2.6

2004-12-01 Thread Gerrit P. Haase
[EMAIL PROTECTED] wrote:
Hi:
  I'm developing a c++ application which uses xerces-c2.6
  It works just fine on the Linux Platform, but when I try to make the
binary file under cygwin I get some errors regarding the linking of the
xerces library. I've compiled the sources for the xerces lib following
the instructions on the website and all of the examples compile  run
fine.
Xerces is ported and included in the Cygwin net distribution, if you
really have the time to build it yourself, then you should get the
source package from the Cygwin mirrors where any Cygwin related
modifications are already included, but I suggest that you just
install the binary package using setup.exe pointing to your favorite
mirror, the package is splitted into runtime, docs and devel, see
http://cygwin.com/packages for details about the package naming.
Gerrit
--
=^..^=
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/