This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: libwinsock.a? Using mu own socket routines ...?
- To: "'gnu-win32 at cygnus dot com'" <gnu-win32 at cygnus dot com>, "'Michael Anderson'" <mka at redes dot int dot com dot mx>
- Subject: RE: libwinsock.a? Using mu own socket routines ...?
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Fri, 6 Jun 1997 10:20:56 +0400
- Encoding: 18 TEXT
Michael Anderson wrote:
> I have done my own socket mappings and wish to use them instead of the
> provided cygwin32_socket() family of routines in sys/socket.h and
> netdb.h. When I comment-out the mapping defines in these two files, the
> compiler complains that socket(), accept(), etc are unresolved
> references. My code has correct prototypes. If I add -lwsock32 to the
> compile line, only WSAStartup() and WSACleanup are resolved.
#define Win32_Winsock
#include <windows.h>
Of course, you must add -lwsock32 to compiler's command line. I just compiled with gcc and ran native winsock code.
--
Sergey Okhapkin
Moscow, Russia
Looking for a job.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".