The problem is that Im making this console application, and I have this header file (that i wrote myself) and for some reason, when I try to compile it doesn't work. Ive put in "#include "shortcolours.h", but for some reason, it keeps on saying "no file or directory found", I understand the error, but I dont know how to get round it
Well is it in the directory that your source file is in?
You could put it in the include directory of your compiler but usually thats not the coolest thing to do :)
It either has to be in the source directory being compiled or the include search path for the compiler must be modified to look in the directory your file is in.
Every compiler allows you to specify additional search directories (it already searches its "standard" include paths containing all the c/c++ header files you are used to including, like stdio and stuff. So find out how to make your compiler look in additional places (compiler switch).
Another option is to put the path of the file in the #include directive. Not always the best solution, but it works just fine for small projects. The paths should be relative though, like #include "../../include/myFile.h" instead of absolute so you can move the source around.
Yer, its in the directory of the main cpp file and the project file, but errors all the way
Always double check the spelling...I've got many lumps on my head for reading what I wanted to see and not what I actually typed...
Problem solved, thats for the help