X-Recipient: archive-cygwin@delorie.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:mime-version:date:message-id:subject:from:to
	:content-type:content-transfer-encoding; q=dns; s=default; b=Zre
	feXyvf9TbakRJreQVIIpKwF3E8rVM4QWN53MnGy4WleB9IpxmPD97m4uH7uYje4/
	lFkjrJC9DcvTkH6YpBkTeIUAlx5ll2MxtrPBzP9wBXS6m8PB8oDk01axn/SetepC
	OJlkcMny21XISvvSvyZBBiqacBvMkl9Ku+mTwNYQ=
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:mime-version:date:message-id:subject:from:to
	:content-type:content-transfer-encoding; s=default; bh=zKKbIFlaS
	jAnbrF7QanMepiqu6Q=; b=GI851gYHcKOzIcPSHVRBmB2swwTpODkEVt67RQq7s
	unH3G4455d9RshSLPnIK49du7M1q2t0APoUw/YIuJDDOcqMVlZrrtb/aLPBWItkx
	F1tmFSVEDWRBm5ezz1ON2adnunnImgyznXV6F+GkOdC66ybPGrVaxZIhegxtwuhz
	lU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
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)
Date: Tue, 1 Mar 2016 22:58:25 -0800
Message-ID: <CAFifAWutgmwLdZJzfeDUdg2RFhfhgNYDaYTrqjXzSZzO0A67Dg@mail.gmail.com>
Subject: realpath() function not declared in scope when "-std=c++11" option added to g++
From: MyBig SpamEmail <mybigspamemailaccount@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u226wfc1013096

Compiling the following code in test.cpp:

#include <limits.h>
#include <stdlib.h>

int main ( void )
{
        realpath ( "//.", NULL );
        return 0;
}

This works:
% g++ test.cpp

This doesn't:
% g++ -std=c++11 test.cpp
test.cpp: In function ‘int main()’:
test.cpp:8:25: error: ‘realpath’ was not declared in this scope
  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


