This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problem with cygwin & xerces-2.6


> -----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]