This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

head file

Hi,

I met a stange problem using CCS3.3, when i created a new project and want to add a head file to the inculde folder, the head file is added to document folder instead, then i complile the project, it say the added head file is not found.

why cannot the head file be added to the include folder?

 

  • I don't believe you need to manually add the header file to a project.  Part of the pre-build process is to scan for dependencies and CCS will automatically include the header file in the project, provided the path to the header file is included in the C Compiler include path.

     

  • I noticed the same behavior for one of the file in my project and was wondering if somebody had an explanation for that.  The name of my file is Sci.hpp (a class used to manage the SCI interfaces).

    However in my case, it did not cause a compilation error.  Did you add the header file directory location to the "include search path" build option of the compiler?