This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to link the following library under cygwin?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]