This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ld didn't find self compiled libxml
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 27 Jul 2010 15:06:47 -0400
- Subject: Re: ld didn't find self compiled libxml
- References: <20100727164212.97850@gmx.net>
- Reply-to: cygwin at cygwin dot com
On Tue, Jul 27, 2010 at 06:42:12PM +0200, cygwin.20.maillinglist@spamgourmet.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