I cant add a .h file to my project. i do this, (i am using code blocks by the way) i go to File > new > file > c/c++ header and i named it emotions.h, ok when i add Emotions.h to my main.cpp #include <Emotions.h> and then i run it, it says no such file or directory exists. why is that?
edit: oh and in my project tree Emotions.h is greyed out.
Mind your capitalization, it can be either emotions.h or Emotions.h, but choose one!
When you use brackets, the file is searched in the include paths. If your file is not in one of those directories, you need to use quotation marks: #include "emotions.h"
edit: oh and in my project tree Emotions.h is greyed out.
Files that appear grey are not compiled, which is normal for headers.