They aren't executable, but I meant in the sense of a file, so the:
chmod +x x.cpp
I followed your advise and used only the .cpp files in g++ by doing this:
g++ -o math Practise.cpp Funct_Def.cpp
and was greeted with this:
Practise.cpp:1:21: fatal error: hearing.h: No such file or directory
compilation terminated.
Funct_Def.cpp:1:21: fatal error: hearing.h: No such file or directory
compilation terminated.
They aren't executable, but I meant in the sense of a file, so the:
chmod +x x.cpp
That still makes no sense and makes no difference whatsoever to the compiler. Never mind.
As Hanst says, use the -I (that's a capital i) switch to tell the compiler in which directory to find the header files. g++ -I/location/of/your/header/ -o math Practise.cpp Funct_Def.cpp
You've definitely called it the right name in your cpp files, yes? I notice that earlier you referred to it as header.h but your cpp files want hearing.h
bbgst: It wasn't working without it, so I thought it was worth a try.
strongdrink:
(My sincerest apologies to everyone that had to attempt to figure out what was wrong, when it was such a stupid error. Thank you all for your help, you've shown me how great the community is when something goes wrong. You are all fantastic!)
I've been programming in C++ how many months now? I still fail on the silliest errors. I'm extremely sorry for my lack of debugging. You... You get the message, eh? Thank you, ever so much!