I created a project with uVision3 and added all the necessary header files into the file group 'Header' by using Project - Components, Environment, Books. By compiling this project I got many similar errors like:
can't open file '*.h'
It seems that the header files cannot be found. Is this way to include the header files correct?
Thanks
"...similar errors like..."
is far too vague.
To be able to diagnose the precise cause(s) of your particular problem(s) you need to copy-and-paste the full text of the complete message.
It will probably look better if you post it as for source code - see the instructions above the message entry box: www.danlhenry.com/.../keil_code.png
You're right - I oversimplified that!
The full detail is, of course, here: http://www.keil.com/support/man/docs/c166/c166_pp_include.htm
Just add the source files, and they will find the necessary headers...
If the headers are in the project directory - or the #include statements specifies which absolute or relative directory they are in, with relation to the source files. Or you have specified extra directories to search for include files.
"can't open file '*.h'"
Sounds like you have entered '*.h' as a filename.
You can't do that - you need to select the files in the 'Add Files to Group' dialogue (you can make multiple selections)
If you do want to have the headers in your Project file list just for referemce, be sure to uncheck the 'Include in Target Build' option. (if you put all the headers together in a group, you can do that for the Group)
You don't need to add the Headers to the project - because the headers do not need to be separately compiled!
View all questions in Keil forum