This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

realpath() function not declared in scope when "-std=c++11" option added to g++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]