This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]