cygwin gcc user library question

Chris Faylor cgf@cygnus.com
Fri Apr 28 18:21:00 GMT 2000


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@sourceware.cygnus.com


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /