public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* realpath() function not declared in scope when "-std=c++11" option added to g++
@ 2016-03-02  6:58 MyBig SpamEmail
  2016-03-02  8:55 ` Csaba Raduly
  0 siblings, 1 reply; 2+ messages in thread
From: MyBig SpamEmail @ 2016-03-02  6:58 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-02  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-02  6:58 realpath() function not declared in scope when "-std=c++11" option added to g++ MyBig SpamEmail
2016-03-02  8:55 ` Csaba Raduly

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).