This is the mail archive of the
mailing list for the Cygwin project.
RE: How to link
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 29 May 2006 00:24:59 +0100
- Subject: RE: How to link
On 27 May 2006 04:17, TmX wrote:
> I got a simple Winsock program & would like to compile it. The libwsock32.a
> is in \lib\32api\
> What's the parameter given to GCC so it links the program with the library
> in C:\cygwin\lib\w32api ?
"-lwsock32" should be all you need; the default linker search paths should already include /lib/w32api. Note that linker ilbs
should always come last on the command line, after all source files.
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html