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=EK8lnIjERkP6nDmP Gd8lwFyKAetZsELqjLsS5KnKCgUNjLonzh9uBesBJ+nI6eehB+anG1EpsCOjyDyd I3lDDzWeTdXrKiTkZYTLhAvhj6hevWTVilYU2eKNy/9N46OYuscLrXOjqON7DMk4 nTLvf/VrnOJDByDyeb5aWOLjBhs= 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=4412KDqq7IYr5P3FKU6QLF zkkF4=; b=gMvo/gNAdnvbopxXR4wgyD3PuPKMz63pwYwt6qlt187i9KW25snMdT KpZo9uRApjbF7MH6VnPiohrCpCVBeagsLJi0pdXMk4hXdHje4byFCFXRMqkGf9es 1rJbqdy3ccjAMu+JASAjQYUkRdKOuVxfQfV/1PMFKpWz+f+CvlwT4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-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 Subject: Re: Why does -std=c++11 hide certain function calls To: cygwin AT cygwin DOT com References: From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: <55fcf4b3-5fd0-8fa1-6669-5a93a14c863e@t-online.de> Date: Wed, 5 Sep 2018 20:46:19 +0200 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 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