This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


    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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]