From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11972 invoked by alias); 26 Sep 2017 05:33:36 -0000 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 Received: (qmail 11671 invoked by uid 89); 26 Sep 2017 05:33:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=selecth, UD:select.h, select.h, fette X-HELO: mail-wm0-f54.google.com Received: from mail-wm0-f54.google.com (HELO mail-wm0-f54.google.com) (74.125.82.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 26 Sep 2017 05:33:00 +0000 Received: by mail-wm0-f54.google.com with SMTP id r74so3666898wme.4 for ; Mon, 25 Sep 2017 22:33:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mFK7oBJs7x6/VNoiuMPLOcRPSyS62dZGJydjKqx2aak=; b=kWFBf+vqpy3W+wvu2DX7186zPhyB+Qp7E8eN6R6mizWnY8ay/ZfYpNdBEz44M5bcVv u1GF7251jNAWaU+hZgV0c9K02y4PXUQeiasKV6T7Nw5T4vdOPUspS2ay+r+Xa6/Pm8pr 5zjUb569uah5uGSblpkWeQvHOF+gxSGkxtLZgm4mZmLI4ET2hKLHp35wnmiz8qCkYX9+ 4WbRbtBoni/ZYyhfAq7osPyz0wrjcDG1Qd9dJ5id092dgcUY08BLG3wHXkBsIjL/79Na J9ZbhXtBoxJngP4EVEs7/d4Mr1MvcduooBrf6KCv0welGo+hUHL4ZfHX4lQgg3QjA4VB YQ6Q== X-Gm-Message-State: AHPjjUi6F8HpUXIkUy/wrccaURkCkOhEoF//gmLtzo0dFSwHRweFW57h X3E1UYGAXJg38eS+GQlD72vRgw== X-Google-Smtp-Source: AOwi7QBbOS7mHKxjrNtPurbMJK2NcChiCKH6bjsJlU/WrY51vvt0Tnme+zRe7uGeAZVsz4ax/EnooA== X-Received: by 10.80.170.73 with SMTP id p9mr16274764edc.307.1506403978277; Mon, 25 Sep 2017 22:32:58 -0700 (PDT) Received: from [192.168.2.108] (p4FDB32F6.dip0.t-ipconnect.de. [79.219.50.246]) by smtp.googlemail.com with ESMTPSA id h45sm5441527eda.92.2017.09.25.22.32.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 22:32:57 -0700 (PDT) Subject: Re: GCC-6.4 sys/select.h build failures with std=c++14 To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: <5cacbf9c-26d0-da8b-0aa8-ad5ec50bea2d@gmail.com> Date: Tue, 26 Sep 2017 05:33:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00254.txt.bz2 On 26/09/2017 03:41, Ian Fette wrote: > I tried compiling a very simple program with curl using -std=c++14 under > 64-bit cygwin with gcc 6.4.0. When compiling with just g++ main.cpp -lcurl > everything is fine, however if I try to use c++14 as the dialect (g++ > main.cpp -lcurl -std=c++14) familiar problems creep up > > In file included from /usr/include/curl/curl.h:2547:0, > from main.cpp:10: > /usr/include/curl/multi.h:155:40: error: ‘fd_set’ has not been declared > fd_set *read_fd_set, > ^~~~~~ > /usr/include/curl/multi.h:156:40: error: ‘fd_set’ has not been declared > fd_set *write_fd_set, > ^~~~~~ > /usr/include/curl/multi.h:157:40: error: ‘fd_set’ has not been declared > fd_set *exc_fd_set, > ^~~~~~ > > > This is resolved by manually including before including > > this seems more an issue of curl header as from http://pubs.opengroup.org/onlinepubs/009696899/basedefs/sys/select.h.html "The header shall define the fd_set type as a structure." so if they are using it, they should have a proper include Marco -- 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