X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: How to link Date: Mon, 29 May 2006 00:24:59 +0100 Message-ID: <01c301c682ad$f0046210$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4586820.post@talk.nabble.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 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/