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 |
Message-ID: | <3F021D72.62EF3A2B@dessent.net> |
Date: | Tue, 01 Jul 2003 16:46:58 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
Organization: | My own little world... |
X-Accept-Language: | en,en-US |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Dumb Question on GCC |
References: | <Law10-OE47VlFvlRojT00011e7d AT hotmail DOT com> <Pine DOT CYG DOT 4 DOT 55 DOT 0307012250320 DOT 2836 AT ellixia> <Law10-OE15T2NqFJ3sl00023a81 AT hotmail DOT com> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |