I have a project made up of only one file named "main.c". Now I want to expand on it and use a header file named "main.h". How do I add that to the current project?
I've created the "main.h" and I'm able to use it but it doesn't show up as part of the project and when I try to add it to the project I get an error saying that The target file cannot be determined from the source files extension.
Thanks,
John
If main.c contains the line
#include "main.h"
you can use the "Update all dependencies" choice in the Project menu. This will scan all *.c files in the project for #include "somefile.h", but not #include <somefile.h>, assuming this is a system file (like stdio.h etc.).
Pelle
Ok, that worked. Thanks Pelle!