Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Chris Faylor Date: Fri, 28 Apr 2000 21:21:13 -0400 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: cygwin gcc user library question Message-ID: <20000428212113.C5447@cygnus.com> Reply-To: cygwin AT sourceware DOT cygnus DOT com Mail-Followup-To: cgf AT cygnus DOT com, cygwin AT sourceware DOT cygnus DOT com References: <3909C5CE DOT A4755E4A AT freenet DOT edmonton DOT ab DOT ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.12i In-Reply-To: <3909C5CE.A4755E4A@freenet.edmonton.ab.ca>; from eho@freenet.edmonton.ab.ca on Fri, Apr 28, 2000 at 06:09:34PM +0100 On Fri, Apr 28, 2000 at 06:09:34PM +0100, eho wrote: >Hi there! I tried to use cygwin gcc to compile and link a c program >under NT. The program uses a library that exists in a lib directory with >a name abc.Lib. But when I specify the GCC command: >gcc xxxxxx.c -labc -L ./lib, I got the ld error cannot open -labc. What >should be the proper way to specify my abc library in the gcc command >under NT? Thanks Cygwin uses the UNIX convention of naming libraries libabc.a, so you'd do something like this: gcc xxxxxx.c -L ./lib -labc or gcc xxxxxx.c lib/libabc.a or gcc xxxxxx.c lib/abc.lib cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com