Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <15A006909596D211B8C500A0C9EBC3D1751CC2@etcex1.etc.atinc.com> From: "Snow, Deborah" To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: What am I doing wrong? Date: Mon, 18 Sep 2000 17:01:08 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Hello, I am trying to compile C++ software done under Visual Studio on Windows 2000 to cygwin. I am new to cygwin. I need to include windows.h, winsock2.h in my code. I have simple functions such as lseek, close, read and write in the code. I cannot include io.h because I compile with g++ -ansi and the define _STRICT_ANSI won't allow prototypes for these functions to be set. Don't know why, they are pretty common. I tried to find out elsewhere they are prototyped in cygwin, and it looks like unistd.h. So I included unistd.h. When I try to compile including unistd.h I get a conflict between the definitions of gethostname between unistd.h and winsock.h.. What is the secret to getting ansi code to compile under cygwin? Any help would be greatly appreciated, Deb Snow Analysis & Technology Engineering Technology Center Mystic, CT (860)572-9600 . -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com