In Xcode, whenever I want to use a file (in C or C++ specifically), I have to specify the full path to the file, whereas with gcc or g++, I do not have to if it is in the same directory as the code referencing it.
Is there a reason to why this is? And if so, is there a way to fix it?