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
Message-ID: <3F021D72.62EF3A2B@dessent.net>
Date: Tue, 01 Jul 2003 16:46:58 -0700
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
X-Accept-Language: en,en-US
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Dumb Question on GCC
References: <Law10-OE47VlFvlRojT00011e7d@hotmail.com> <Pine.CYG.4.55.0307012250320.2836@ellixia> <Law10-OE15T2NqFJ3sl00023a81@hotmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Martin Gainty wrote:
> 
> $ gcc SLPReg.c -L./ -llibcommonlibslp.a -llibcommonslpd.a
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
> cannot fi
> nd -llibcommonlibslp.a
> collect2: ld returned 1 exit status
> 
> I put c files, o.files, lib and all files local in same directory  and the
> linker still cant find anything Is there any doc on how this works?

Try "-lcommonlibslp -lcommonslp" although you probably only need one and
not both.  The -l parameter prepends "lib" and knows to search for the
correct library entension.  So if you have libfoo.a in /usr/lib, you
just add -lfoo to gcc's command line.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

