delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
From: | "Dave Korn" <dk AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: Problem with cygwin & xerces-2.6 |
Date: | Wed, 1 Dec 2004 18:12:30 -0000 |
MIME-Version: | 1.0 |
In-Reply-To: | <1071.201.252.23.241.1101922259.squirrel@www.activesec.biz> |
Message-ID: | <NUTMEGe1ZvPtHQBLE7C000002bd@NUTMEG.CAM.ARTIMI.COM> |
X-OriginalArrivalTime: | 01 Dec 2004 18:12:30.0703 (UTC) FILETIME=[5297BFF0:01C4D7D1] |
> -----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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |