From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105281 invoked by alias); 2 Mar 2016 06:58:29 -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 105267 invoked by uid 89); 2 Mar 2016 06:58:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=limitsh, limits.h, UD:limits.h X-HELO: mail-oi0-f48.google.com Received: from mail-oi0-f48.google.com (HELO mail-oi0-f48.google.com) (209.85.218.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 02 Mar 2016 06:58:27 +0000 Received: by mail-oi0-f48.google.com with SMTP id d205so64294915oia.0 for ; Tue, 01 Mar 2016 22:58:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-transfer-encoding; bh=3Xi2dkDsq+AbqNGTcph59YUHuoa/wPYZGMuOrgB6S2g=; b=hc06669YL5EmSjYGG31SEEH+qLe2DEx++CTbdX0Oamr9Vk3LryD0ev/Dq6djN3biGo nRjwOP8KidX0wZfVXDb8OXUxw/AnH6DYeTgp24m83tNNfrv3KCXsT28rM6S6PjEq203l O7PydapiFs00qcb562V+crTD7WXyDLaJe7UN/iKZpZyZNC0OlHmzJW1Rji6dohSdkYrt YYZ3rQ+UbVJwSM/hJJICfurJkUpeTj9PCdHzCEw9xuqPDmzSBxMzUJpFV2p83fzmTprT QXG47nFpyseT2fMYif5UPbcy6ym8MeuUxm3kK25f4QdLU5cNPGtexETExG5GdNemU0NJ agkQ== X-Gm-Message-State: AD7BkJKEA80FzWrjrE5yaDZgjCzOog5m05+XIyYaFjuJu/qKSypIzRjyhKmpjtX4P2OiSAspwLnPW1NewQVkfw== MIME-Version: 1.0 X-Received: by 10.202.173.83 with SMTP id w80mr17954738oie.113.1456901905612; Tue, 01 Mar 2016 22:58:25 -0800 (PST) Received: by 10.76.38.132 with HTTP; Tue, 1 Mar 2016 22:58:25 -0800 (PST) Date: Wed, 02 Mar 2016 06:58:00 -0000 Message-ID: Subject: realpath() function not declared in scope when "-std=c++11" option added to g++ From: MyBig SpamEmail To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2016-03/txt/msg00004.txt.bz2 Compiling the following code in test.cpp: #include #include int main ( void ) { realpath ( "//.", NULL ); return 0; } This works: % g++ test.cpp This doesn't: % g++ -std=3Dc++11 test.cpp test.cpp: In function =E2=80=98int main()=E2=80=99: test.cpp:8:25: error: =E2=80=98realpath=E2=80=99 was not declared in this s= cope realpath ( "//.", NULL ); ^ Is this expected behavior? -- 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