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.

can't find #include files

Other Parts Discussed in Thread: CCSTUDIO

It is my day one with ccs3.1 for a TIMS-DSP-6713 and I'm ready to put an axe through the lot.  I have a very simple test program that starts with several #include statements.  I have created a new project and added this simple test program, it appears in the project\Source directory.  I then "scan for dependancies" and CCStudio finds all the include files and puts them in the project\Include directory.  However, when I build the project the c-compiler claims is cannot find these files.  This is madness and has wasted most of my day.

  • Hi Kevin,

    You will need to add the path to the include files to the build options (right-click on the project and select 'Build Options'. Then go to the 'Preprocessor' section and add the path to the 'Include Search Path')

    Scanning the dependencies will have CCS detect and list the header files needed to build. But CCS will not know where the location is by default. If you double-click on the header files in the project\Include directory, it probably cannot open it.

    Hope this helps

    ki

  • This seems silly.

    I can see the header file in the project folder (not on the drive, but in the eclipse project folder)

    If I open that file its fine.

    If I click on the file name in an include statement and hit F3, the correct file opens up.

    Yet the compiler can't seem to find the file ?!?!?!?

    This happens a lot and it is frustrating beyond measure. It would be really nice if there was a way to automatically add any file that is actually in the project to the search list without me having to do this manually.