delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/26/01:33:56

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=k/wYUVfTbYX8z/ZN
KnsOKpp+ucA8JdONRnu37TobskRD5ot9HGXE9wECgjr23S//1X4S4jCCCOsW4WhJ
YItdAte+7vMjldQd8VvUlowCLPEj/IA40FgfexpEJvfIe3KF0Rj+7WCUXz6mwNO6
6mUgm2zQ76AOCwN53UNizoGTims=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=q9EF2mgoDUNA0CUZ8oHMNE
uQBgg=; b=qVDaNtmO+/uSllvnWIkbbbV77bByGMuBT44L1sFjCbynEDFdUPS4Mq
kaOC5ofizNVqdKLvTz0HgeoqODeRDERQf8H38PjNVdrfO5H7J+WbamlWo/JLEfux
7yE7kdtL8Gc7UkhsIF6WDI4/FfLlOvQH/JPvlVr36j89KmBJCNppo=
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
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
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)
Subject: Re: GCC-6.4 sys/select.h build failures with std=c++14
To: cygwin AT cygwin DOT com
References: <CAHBhQykTn7Y2rPVtAQSaVu+1J8ytSDAAcT-Su5e_oABEVNmtrA AT mail DOT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <5cacbf9c-26d0-da8b-0aa8-ad5ec50bea2d@gmail.com>
Date: Tue, 26 Sep 2017 07:32:47 +0200
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: <CAHBhQykTn7Y2rPVtAQSaVu+1J8ytSDAAcT-Su5e_oABEVNmtrA@mail.gmail.com>
X-IsSubscribed: yes


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 <sys/select.h> before including
> <curl/curl.h>
> 

this seems more an issue of curl header as from
http://pubs.opengroup.org/onlinepubs/009696899/basedefs/sys/select.h.html

"The <sys/select.h> 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

- Raw text -


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