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.

Unable to compile the project with header files in folders Other than Include folder

Hi,

I am new to Code composer Studio v5, facing an issue with the new folder Structure. I Created a folder in Source folder of the project with related .c and .h files in.

And the .h file is referenced in other .c files outside the folder. The include options in Build options changed to "${workspace_loc:/${ProjName}/source/SYSTEM}", still the error persists. Is there any way to organize the source files in a way that the sub folders of Source folder contains both .c and .h files.

Many thanks in advance.

regards,

Prasad SM

  • M Prasad Suravadhanula said:
    And the .h file is referenced in other .c files outside the folder. The include options in Build options changed to "${workspace_loc:/${ProjName}/source/SYSTEM}", still the error persists

    When you build the project, take a look at the CCS build console and check what that include option (${workspace_loc:/${ProjName}/source/SYSTEM}) translates to.
    Does it resolve to the correct directory where the .h files are? That should hopefully give some clues as to the reason for the error (is the path not getting resolved correctly, do the .h files actually exist in that location, etc)