delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 <andrew DOT markebo AT telia DOT 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 DOT A84AD3B98 AT sitemail DOT everyone DOT net> |
Mime-Version: | 1.0 |
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 <elfyn-cygwin AT sickpuppy DOT co DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |