-
Please help urgent
I have the following files in my home directory.
Main.cpp
Inputfuntion.h
when I do g++ main.cpp, it says Inputfunction.h not found
I use
g++ Main.cpp to compile, what am I doing wrong? Please help ASAP, I waited till the last minute to do this project :(
-
My guess is that you've written #include <Inputfunction.h>, right? That tells cpp to look in the system's include directories, which apparently is not where Inputfunction.h is.
Replace it with #include "Inputfunction.h", which tells cpp to look in the current directory and the other user specified include directories (which I'm guessing is none).