From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23026 invoked by alias); 30 Jun 2012 07:41:56 -0000 Received: (qmail 23016 invoked by uid 22791); 30 Jun 2012 07:41:54 -0000 X-SWARE-Spam-Status: No, hits=2.8 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FSL_FREEMAIL_1,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nm3-vm4.bullet.mail.ne1.yahoo.com (HELO nm3-vm4.bullet.mail.ne1.yahoo.com) (98.138.91.163) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 30 Jun 2012 07:41:19 +0000 Received: from [98.138.90.52] by nm3.bullet.mail.ne1.yahoo.com with NNFMP; 30 Jun 2012 07:41:18 -0000 Received: from [98.138.226.166] by tm5.bullet.mail.ne1.yahoo.com with NNFMP; 30 Jun 2012 07:41:18 -0000 Received: from [127.0.0.1] by omp1067.mail.ne1.yahoo.com with NNFMP; 30 Jun 2012 07:41:18 -0000 Received: (qmail 33090 invoked by uid 60001); 30 Jun 2012 07:41:18 -0000 Received: from [175.139.109.105] by web121706.mail.ne1.yahoo.com via HTTP; Sat, 30 Jun 2012 00:41:18 PDT Message-ID: <1341042078.16411.YahooMailNeo@web121706.mail.ne1.yahoo.com> Date: Sat, 30 Jun 2012 07:41:00 -0000 From: Patrick L Reply-To: Patrick L Subject: Why Cygwin tries to pull in winsock2.h when compiling a Linux application? To: "cygwin@cygwin.com" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00570.txt.bz2 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 messag= es: checking winsock2.h usability... no checking winsock2.h presence... yes configure: WARNING: winsock2.h: present but cannot be compiled configure: WARNING: winsock2.h: =A0 =A0 check for missing prerequisite head= ers? configure: WARNING: winsock2.h: see the Autoconf documentation configure: WARNING: winsock2.h: =A0 =A0 section "Present But Cannot Be Comp= iled" configure: WARNING: winsock2.h: proceeding with the preprocessor's result configure: WARNING: winsock2.h: in the future, the compiler will take prece= dence configure: WARNING: =A0 =A0 ## ------------------------------------------ ## configure: WARNING: =A0 =A0 ## Report this to xxx@xxx.xxx ## configure: WARNING: =A0 =A0 ## ------------------------------------------ ## 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: =A0 =A0 check for missing prerequisite head= ers? configure: WARNING: ws2tcpip.h: see the Autoconf documentation configure: WARNING: ws2tcpip.h: =A0 =A0 section "Present But Cannot Be Comp= iled" configure: WARNING: ws2tcpip.h: proceeding with the preprocessor's result configure: WARNING: ws2tcpip.h: in the future, the compiler will take prece= dence configure: WARNING: =A0 =A0 ## ------------------------------------------ ## configure: WARNING: =A0 =A0 ## Report this to xxx@xxx.xxx ## configure: WARNING: =A0 =A0 ## ------------------------------------------ ## checking for ws2tcpip.h... yes winsock2.h and ws2tcpip.h are Windows header files for Windows network/sock= et 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. -- 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