This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Dumb Question on GCC
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/