Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-19-2003 #1Just Joined!
- Join Date
- Oct 2002
- Posts
- 15
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
- 02-19-2003 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
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).


Reply With Quote
