On 14 November 2013 11:57, David Aldrich wrote: > 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? Declare the function, of course! It's declared in <unistd.h> so make sure you include that. If you use that function without including <unistd.h> then your code was always broken, but you got away with it in the past. See the header dependency changes section of http://gcc.gnu.org/gcc-4.7/porting_to.html for more details.