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

Libraries in uVision3

Hello,

I have a problem with libraries in uVision3.

A project consists of some .c and .h files. I took out the .c file with the main() function and built the rest files into a library. And then I created a new project with this library and the .c file with the main() function. While compiling there are some errors like:

error C318: can't open file 'target.h'

That is, my .h file 'target.h' cannot be found. How can I solve this problem?

Best Regards,
Senmeis

  • Hi,
    if the compiler says, it can not find a file, you have to check, if the file exists and whether the compiler can find it.
    Check if the path, where the file is located, is in the include path in the project settings.