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
  • "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)

Reply
  • "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)

Children
No data