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: Christopher Faylor <cgf at redhat dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 20 Dec 2002 19:54:06 -0500
- Subject: Re: How to link the following library under cygwin?
- References: <20021220230013.A84AD3B98@sitemail.everyone.net>
- Reply-to: cygwin at cygwin dot com
On Fri, Dec 20, 2002 at 03:00:13PM -0800, Elfyn McBratney 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.
Close.
gcc -o test initialize.c libmetis.a
The .a file goes last and you don't need -L.
cgf
--
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/