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.

Include file not found

Other Parts Discussed in Thread: CCSTUDIO

I a new user to CCStudio (v3.1) and recently added a header file to a project.  The file is listed under the Include folder of the project, but when I double click on the file name or try to view properties CCStudio cannot find the file.  The option to remove the file from the project is disabled, so I now cannot get rid of it from the Include folder list.  Only after running into this problem did I consult the CCStudio IDE Help to learn that one should not attempt to manually add a header/include file.  Unfortunately, it's too late.  I've tried everything I can think of to resolve the issue without success. Does anybody have a suggestion for how I can delete this manually added include file from the project?

Thanks,

Bryan

  • Hi Bryan,

    You can do two things.

    1. Have you included the header file in your main project (.c file) . If yes, then delete/comment the include statement, then try deleting the file. If I understand your problem correctly, then I once did the same thing when I was a beginner and this helped me delete the file from my project. Then once the file is removed from your include path, you can manually go to the project folder and delete the file.

    2. If this does not help, then the best option would be to open a new clean project and  initialize the header and project files newly.

    Hope this helps.

    Regards,

    Sid

  • Sid is correct.  You need to remove the #include statements that include the file to get it to not show up.  The \include folder in CCSv1/2/3 is created by the dependency scanner in CCS.  If you double click on the file and it does not find it that means your include search path does not contain the path to the file and the dependency scanner knows the file is needed but can't find it.

     

    John

     

  • Hi Sid,

    Thank you for your reply.  I tried suggestion 1 and it resulted in the header file disappearing from the Include folder of the project.  That made me realize that the relative path that I defined to the header file was incorrect.  Once corrected, the compile problem was resolved.  It also made me realize that CCStudio seems to handle include paths inconsistently (at least, that's the way it appears in the project that I inherited).  For some reason, it is required to specify two paths to the same directory, one that goes up two directories (../..) and a second that goes up three directories (../../..).  Because of this apparent inconsistency, I had incorrectly specified the relative path to my new include file.

    Thanks again for your suggestions.

    Bryan