Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com List-Unsubscribe: List-Archive: List-Help: , Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Sun, 01 Aug 1999 20:22:10 +0200 X-Mailer: Virtual Access by Atlantic Coast PLC, http://www.soft-shop.com Message-Id: To: Cygwin Subject: GCC 2.95-Mingw32: winsock.h is not C++ enabled From: ¨Marcel Cox Reply-To: marcel DOT cox AT ibm DOT net The winsock.h file from the mingw32 version of GCC 2.95 is not C++ enabled. You get link time errors because the names for the winsock functions are mangled. The solution is to include the usual C11 enabling stuff in the header file, e.g. near the beginning of the file: #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ near the end: #ifdef __cplusplus } #endif /* __cplusplus */ Marcel Cox -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com