This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ways to include header files

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

Parents
  • 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.

Reply
  • 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.

Children