This is the mail archive of the
cygwin
mailing list for the Cygwin project.
linking programs with winsock API - Problems
- From: <krishna_unf at bellsouth dot net>
- To: <cygwin at cygwin dot com>
- Date: Sun, 21 Nov 2004 21:21:50 -0500
- Subject: linking programs with winsock API - Problems
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/