delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/29/03:05:11

From: newsham AT aloha DOT net (Tim Newsham)
Subject: Re: compiling winsock apps
29 Oct 1997 03:05:11 -0800 :
Message-ID: <199710282042.KAA05336.cygnus.gnu-win32@haleakala.aloha.net>
References: <s454b823 DOT 076 AT dccinc DOT com>
Mime-Version: 1.0
To: bgmiller AT dccinc DOT com (Ben Miller)
Cc: gnu-win32 AT cygnus DOT com

> I have read the archives, the faq's, the docs (that I could find) and I still can't find how to compile a winsock application.  I can't even get all the headers to compile properly.  Can anyone out there offer some help or simple samples on how to get a standard winsock cpp application to compile and run properly.

^^ you should hit the enter key once every 70 characters.

You need to do:

    #define Win32_Winsock
    #include <windows.h>

to pull in the winsock defines rather than the cygwin (bsd style)
socket defines.

> Benjamin G. Miller

                                      Tim N.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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