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. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/