This is the mail archive of the
mailing list for the Cygwin project.
Re: ldconfig problem
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 30 Aug 2007 08:29:15 -0400
- Subject: Re: ldconfig problem
- References: <email@example.com> <firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
Senthil Nathan wrote:
I'm using cygwin for the first time to compile my programs.
I get the following error during dynamic loading of my libraries.
And I came to know that there is no concept of "ldconfig".
So how do I load my dynamic libraries while compiling.
this is the command i run on linux platform, which works well.
$ gcc `xml2-config --cflags --libs` -o save save.c --> /usr/local/lib
has the library to linked with this.
but how do i compile this in cygwin.
and the error I get in cygwin is,
collect2: ld returned 1 exit status
Order matters on Win32 platforms. You *may* find the following resolves
the link problem you were seeing:
gcc `xml2-config --cflags` -o save save.c `xml2-config --libs`
Note: I didn't try the above and I have no experience with xml2-config.
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html