delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/18/17:04:07

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <dsnow AT etc DOT atinc DOT com>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <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)

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

- Raw text -


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