Re: Creating Header file in project
There is nothing wrong with storing header files in either of those directories,
or any other directory you may choose.
In C programming language, header files may be stored in any directory.
However, if a header file is not stored in the obvious place,
then You will have to tell the compiler where to search for header files.
There is basically two different ways: Specifying a directory search list in MPLAB IDE,
or specifying absolute or relative directory path in every #include line where it may be needed.
In a large project with many files in multiple directories, this may become complicated, and may need planning and clear thinking.
In a MPLAB X project, the default directory for source and header files, is the ...X directory, eg.:
the simplest solution for a small project, is to store all source and header files in the same directory.
Directories you have, may seem to come from a MPLAB 8 project that have been converted to MPLAB X,
thus the two directories with some files each.
Note: Copying a header file, such that the same file is available in different directories,
may solve a immediate problem, but when one file is edited and the other is not, then this will cause even more confusing problems later.