delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/21/21:22:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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-Originating-IP: [139.62.32.201]
From: <krishna_unf AT bellsouth DOT net>
To: <cygwin AT cygwin DOT com>
Subject: linking programs with winsock API - Problems
Date: Sun, 21 Nov 2004 21:21:50 -0500
MIME-Version: 1.0
Message-Id: <20041122022150.NEBH2430.imf22aec.mail.bellsouth.net@mail.bellsouth.net>

Hi,

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

The command  used to compile and like the program:

$ gcc -o winclient.exe ipv4winclient.c -lwinsock32

Error message received:

/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lwinsock32
collect2: ld returned 1 exit status 

Any help to use cygwin for windows networking exmaples is very much appreciated.

Thanks,
Krishna



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019