How to link the following library under Cygwin?
Andrew Markebo
andrew.markebo@telia.com
Sat Dec 21 06:28:00 GMT 2002
/ 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/
More information about the Cygwin
mailing list