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 X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs Date: Wed, 22 Oct 2003 12:55:30 -0500 (CDT) From: Brian Ford X-X-Sender: ford AT eos To: cygwin AT cygwin DOT com Subject: Re: Can't link to libws2_32.a In-Reply-To: <20031022172058.66718.qmail@web303.mail.yahoo.co.jp> Message-ID: References: <20031022172058 DOT 66718 DOT qmail AT web303 DOT mail DOT yahoo DOT co DOT jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 23 Oct 2003, Takeshi Honda wrote: > I want to use winsock2.h, but when I compiled my program, > I got the following errors. > > %gcc -lwsock32 -lws2_32 main.cpp > First off, libraries go after C/C++ files, so: gcc main.cpp -lwsock32 -lws2_32 Secondly, why are you trying to use winsock in Cygwin? Just use normal unix sockets. If you were using mingw/-mno-cygwin, I might understand. > DLL version is 1.3.12. > If you meant the Cygwin DLL here, I *strongly* suggest you update as you won't be getting much more help from this list until you do. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- 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/