This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to fix "‘get_current_dir_name’ was not declared in this scope" ?
- From: David Aldrich <David dot Aldrich at EMEA dot NEC dot COM>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 14 Nov 2013 11:57:37 +0000
- Subject: How to fix "‘get_current_dir_name’ was not declared in this scope" ?
- Authentication-results: sourceware.org; auth=none
Hi
Our application builds fine on Ubuntu 12.04 LTS, using gcc 4.6.3.
However, when I attempt to build on Fedora 19, which uses gcc 4.8.2 I see:
g++ -I../../Kernel -Wall -m64 -O3 -c -o FileSystem.o FileSystem.cpp
FileSystem.cpp: In static member function ‘static std::string FileSystem::currentDir()’:
FileSystem.cpp:108:34: error: ‘get_current_dir_name’ was not declared in this scope
p = get_current_dir_name();
Please will someone explain how to fix this?
Best regards
David