Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
Path: not-for-mail
From: Andrew Markebo <andrew.markebo@telia.com>
Subject: Re: How to link the following library under Cygwin?
Date: Sat, 21 Dec 2002 12:24:04 +0100
Lines: 14
Message-ID: <m3of7fr4x7.fsf@flognat.myip.org>
References: <20021220230013.A84AD3B98@sitemail.everyone.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Complaints-To: usenet@main.gmane.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 <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/

