www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/27/15:07:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 27 Jul 2010 15:06:47 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ld didn't find self compiled libxml
Message-ID: <20100727190647.GC3387@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20100727164212 DOT 97850 AT gmx DOT net>
MIME-Version: 1.0
In-Reply-To: <20100727164212.97850@gmx.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Tue, Jul 27, 2010 at 06:42:12PM +0200, cygwin DOT 20 DOT maillinglist AT spamgourmet DOT com wrote:
>Hi folks
>
>I'm not an expert on compiling things for cygwin. Normally configure, make, make install work fine. But not now.
>
>I tried to compile a program which needs libxml support.
>
>I compiled and installed the libxml myself. While running configure everything is ok. The libxml is found. But when I try to build the program
>I get the following error.
>
>-------------------------------------------------------
>$ make
>make  all-am
>make[1]: Entering directory `/cygdrive/c/pm/fromsource/xml2-0.4'
>gcc  -g -O2   -o xml2.exe  xml2.o -lxml
>/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lxml
>collect2: ld gab 1 als Ende-Status zur??ck
>make[1]: *** [xml2.exe] Fehler 1
>make[1]: Leaving directory `/cygdrive/c/pm/fromsource/xml2-0.4'
>make: *** [all] Fehler 2
>-------------------------------------------------------
>
>What could I do that the libxml is linked to the program?
>Must I convert the libxml to a dll?
>
>Thank for any hint

ld doesn't search the current directory for libraries.  Either add
a -L. to the command line or specify libxml.a rathern than -lxml .

cgf

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

- Raw text -


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