From: MyBig SpamEmail <mybigspamemailaccount@gmail.com>
To: cygwin@cygwin.com
Subject: realpath() function not declared in scope when "-std=c++11" option added to g++
Date: Wed, 02 Mar 2016 06:58:00 -0000 [thread overview]
Message-ID: <CAFifAWutgmwLdZJzfeDUdg2RFhfhgNYDaYTrqjXzSZzO0A67Dg@mail.gmail.com> (raw)
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
next reply other threads:[~2016-03-02 6:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-02 6:58 MyBig SpamEmail [this message]
2016-03-02 8:55 ` Csaba Raduly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFifAWutgmwLdZJzfeDUdg2RFhfhgNYDaYTrqjXzSZzO0A67Dg@mail.gmail.com \
--to=mybigspamemailaccount@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).