Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com Path: not-for-mail From: Andrew Markebo Subject: Re: How to link the following library under Cygwin? Date: Sat, 21 Dec 2002 12:24:04 +0100 Lines: 14 Message-ID: References: <20021220230013 DOT A84AD3B98 AT sitemail DOT everyone DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet AT main DOT gmane DOT org X-message-flag: Infected by Norwegian Cheese User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.7 (i386-redhat-linux-gnu) Cancel-Lock: sha1:p9QtNqVe03UWrtAHeXxALR6D+6M= / 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. 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/