delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/30/03:54:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <4FEEB098.5000607@gmail.com>
Date: Sat, 30 Jun 2012 09:54:00 +0200
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Why Cygwin tries to pull in winsock2.h when compiling a Linux application?
References: <1341042078 DOT 16411 DOT YahooMailNeo AT web121706 DOT mail DOT ne1 DOT yahoo DOT com>
In-Reply-To: <1341042078.16411.YahooMailNeo@web121706.mail.ne1.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 6/30/2012 9:41 AM, Patrick L wrote:
> Hi, I am using Cygwin 1.7.11 i686 on Windows 7 PC. I am trying to compile a Linux C++ application on Cygwin.
>
> When I use the ./configure command, Cygwin shows the following error messages:
>
> checking winsock2.h usability... no
> checking winsock2.h presence... yes

If this program is looking for winsock2.h than it allows to be
compiled on windows.
It is not cygwin requesting it, it is the configure itself

> configure: WARNING: winsock2.h: present but cannot be compiled
> configure: WARNING: winsock2.h:     check for missing prerequisite headers?
> configure: WARNING: winsock2.h: see the Autoconf documentation
> configure: WARNING: winsock2.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: winsock2.h: proceeding with the preprocessor's result
> configure: WARNING: winsock2.h: in the future, the compiler will take precedence
> configure: WARNING:     ## ------------------------------------------ ##
> configure: WARNING:     ## Report this to xxx AT xxx DOT xxx ##
> configure: WARNING:     ## ------------------------------------------ ##
> checking for winsock2.h... yes
> checking ws2tcpip.h usability... no
> checking ws2tcpip.h presence... yes
> configure: WARNING: ws2tcpip.h: present but cannot be compiled
> configure: WARNING: ws2tcpip.h:     check for missing prerequisite headers?
> configure: WARNING: ws2tcpip.h: see the Autoconf documentation
> configure: WARNING: ws2tcpip.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: ws2tcpip.h: proceeding with the preprocessor's result
> configure: WARNING: ws2tcpip.h: in the future, the compiler will take precedence
> configure: WARNING:     ## ------------------------------------------ ##
> configure: WARNING:     ## Report this to xxx AT xxx DOT xxx ##
> configure: WARNING:     ## ------------------------------------------ ##
> checking for ws2tcpip.h... yes
>
> winsock2.h and ws2tcpip.h are Windows header files for Windows network/socket programming. Why Cygwin tries to pull in Windows header files when I am compiling a Linux C++ application? How can I fix this issue?
>
> Thanks.

Which program ?






--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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