From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125796 invoked by alias); 5 Sep 2018 18:46:33 -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 125674 invoked by uid 89); 5 Sep 2018 18:46:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=H*Ad:D*t-online.de, H*M:online, H*UA:60.0 X-HELO: mailout09.t-online.de Received: from mailout09.t-online.de (HELO mailout09.t-online.de) (194.25.134.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Sep 2018 18:46:25 +0000 Received: from fwd19.aul.t-online.de (fwd19.aul.t-online.de [172.20.27.65]) by mailout09.t-online.de (Postfix) with SMTP id 7EEB9424D0DE for ; Wed, 5 Sep 2018 20:46:22 +0200 (CEST) Received: from [192.168.178.24] (TtzIfQZJQhhqbhLLVrHyi69D3ZxspUOhwMH8PqqdC+fWLy3tFXSCvUCL2QYp6JkQWL@[91.59.10.170]) by fwd19.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1fxcon-4bbUOG0; Wed, 5 Sep 2018 20:46:21 +0200 Subject: Re: Why does -std=c++11 hide certain function calls To: cygwin@cygwin.com References: From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: <55fcf4b3-5fd0-8fa1-6669-5a93a14c863e@t-online.de> Date: Wed, 05 Sep 2018 18:46:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00102.txt.bz2 Am 05.09.2018 um 07:55 schrieb John Selbie: > With this: g++ foo.cpp -c -std=c++11 > It compiles fine everywhere else, except CygWin. Output on Cygwin: I'm afraid that may mean everywhere else is wrong. > Yes, switching to -std=gnu++11 or adding -D_DEFAULT_SOURCE to the command > line line works. > > But I don't understand why the need to enforce these extensions to get > access to some of the most common unix libraries? Because that's what std=c++11 is meant and documented to do. It turns off all extensions to the standard language. And yes, that does include extensions to the standard libary, up to and including POSIX-specific content. For what you want to do, std=c++11 is simply the wrong setting. -- 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