Has anyone seen a way to get the current working directory (or the directory the executable is in) that doesn't use direct.h?
The problem is that my group wants the code to compile the code with the following options (using MinGW g++.exe):
-Wall -Wextra -Werror -pedantic -pedantic-error
direct.h uses longlong, which means that it doesn't conform to the C99 standards. Is there any workaround for this?
Thanks, but unistd.h (or at least the version that we have) also doesn't compile under -pedantic, and we're trying to avoid using anything besides the STL.
It looks like we're just going to have to remove that option, and it will build properly