Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <41A150AB.4875EB8D@dessent.net> Date: Sun, 21 Nov 2004 18:36:27 -0800 From: Brian Dessent Organization: My own little world... MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: linking programs with winsock API - Problems References: <20041122022150 DOT NEBH2430 DOT imf22aec DOT mail DOT bellsouth DOT net AT mail DOT bellsouth DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com krishna_unf AT bellsouth DOT net wrote: > I am new to using the winsock programs. I am having problem in creating the runtime binaries using the socket programming with winsock API. > > The error message received on the console is :- cannot find -lwinsock32 If you are compiling a _cygwin_ program and use standard posix socket functions there is no need for -lanything because all of the socket functions are handled by the Cygwin DLL. If you are compiling a mingw application (i.e. you include -mno-cygwin on your gcc command line) then you will have to add -lws2_32 or -lwinsock. However, "winsock32" is not the name of any valid mingw library so that will not work. 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/