Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: 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/