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 Date: Fri, 20 Dec 2002 19:54:06 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: How to link the following library under cygwin? Message-ID: <20021221005406.GA15873@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20021220230013 DOT A84AD3B98 AT sitemail DOT everyone DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021220230013.A84AD3B98@sitemail.everyone.net> User-Agent: Mutt/1.5.1i 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/