From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26933 invoked by alias); 30 Jun 2012 07:54:19 -0000 Received: (qmail 26923 invoked by uid 22791); 30 Jun 2012 07:54:17 -0000 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 Received: from mail-wi0-f173.google.com (HELO mail-wi0-f173.google.com) (209.85.212.173) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 30 Jun 2012 07:54:04 +0000 Received: by wibhm6 with SMTP id hm6so1303827wib.2 for ; Sat, 30 Jun 2012 00:54:03 -0700 (PDT) Received: by 10.216.216.148 with SMTP id g20mr2111747wep.187.1341042843329; Sat, 30 Jun 2012 00:54:03 -0700 (PDT) Received: from [192.168.2.192] (93-33-102-42.ip44.fastwebnet.it. [93.33.102.42]) by mx.google.com with ESMTPS id k8sm18651889wia.6.2012.06.30.00.54.02 (version=SSLv3 cipher=OTHER); Sat, 30 Jun 2012 00:54:02 -0700 (PDT) Message-ID: <4FEEB098.5000607@gmail.com> Date: Sat, 30 Jun 2012 07:54:00 -0000 From: marco atzeri 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@cygwin.com Subject: Re: Why Cygwin tries to pull in winsock2.h when compiling a Linux application? References: <1341042078.16411.YahooMailNeo@web121706.mail.ne1.yahoo.com> In-Reply-To: <1341042078.16411.YahooMailNeo@web121706.mail.ne1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00571.txt.bz2 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@xxx.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@xxx.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