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.

Is there an automated method within Code Composer Studio to ensure that header files from all subfolders are visible to all C files which is located in any of the sub folders?

Dear Ti Community, 

My CCS Project Structure is :

My project is having many modules and project is implemented in structured way (Ex. One main folder per module, every module will have sub modules within it and each module contain header file in folder).

---------------------------------------------------------------------------------

So here the concern is : 

When I have to use/include(Ex. #include "header.h) any header file to any sub module I have to add that particular folder path in "include header" settings of CCS every time (for every new sub folders or folder/module) and need to add the path for that particular folder so header file of added folder will be visible to the project. (This is time consuming and complex procedure I feel) 

---------------------------------------------------------------------------------

But may I know is there any way to automate this procedure in code composer studio? Like, code composer studio should consider all sub folder contains header files from one main folder or something like this ? 

---------------------------------------------------------------------------------

Kindly suggest efficient approach to showcase header files to specific modules or globally visible in CCS projects. 

At the end, please share if any example or learning contains on this specific topic. (Ex. How to manage structured project in CCS or something similar) 

Thank you in advance!

  • Hello,

    Kindly suggest efficient approach to showcase header files to specific modules or globally visible in CCS projects. 

    A common way is to define a root include path directory for the compiler and then reference the header files from that root:

    #include "module/subfolder/header.h"

    Thanks

    ki