This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: How to link the following library under Cygwin?
- From: Andrew Markebo <andrew dot markebo at telia dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 21 Dec 2002 12:24:04 +0100
- Subject: Re: How to link the following library under Cygwin?
- Cancel-lock: sha1:p9QtNqVe03UWrtAHeXxALR6D+6M=
- References: <20021220230013.A84AD3B98@sitemail.everyone.net>
/ Elfyn McBratney <elfyn-cygwin@sickpuppy.co.uk> wrote:
| Try this:
>
| $ gcc -o test -L. libmetis.a initialize.c
>
| You need to include the static archive into your image. I'm pretty sure the -l{} only applies to shared libraries.
Just a short note, more that putting the lib at the end, -lmetis is
not only for shared libraries, works for static ones too.
/Andy
--
The eye of the beholder rests on the beauty!
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/