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.

LAUNCHXL-F28379D: Need assistance with adding include paths in CCS 20.1.1

Part Number: LAUNCHXL-F28379D


Tool/software:

Hi team,

we are trying to add a header file in one of put project file 

And below is our project structure.

I was trying to include api_moduleStateManager.h in schedulerServer.h, but however it didn't work.

The path that we are trying to add is - ${PROJECT_DIR}/Core1/Utilities/Module State Manager

Please assist us with the guidelines so that we could do this for all the files, currently this is creating lot of problems for us.

  • Hi Sourabh,

    It looks like the path you're attempting to add is not quite correct. The path variable should resolve to the workspace place the project name, assumed to be "Core1". To fix the #include, remove the Core1 directory from your include path. The path should now show, ${PROJECT_DIR}/Utilities/Module State Manager.

    Once you've made the change, double check to make sure that there are no build warnings about missing include paths.

    I'll also suggest that you eliminate the use of spaces in your file directories, the reason is that a space will cause the path to not completely resolve. Replace them with either "-" or "_". So your path should now look like this once you've renamed the directories in your project: ${PROJECT_DIR}/Core1/Utilities/Module_State_Manager

    Let me know if you have any other questions.

    Regards,

    Ozino

  • Hi Ozino,

    Thanks for your assistance.

    I tried replacing spaces with "_" in the folder "Module State Manager" and also removed core1 from the path. But it didn't help.

  • Hi Sourabh, 

    Can you try switching PROJEC_DIR to PROJECT_ROOT to match the other include paths in your above screen shot.

    Regards,

    Ozino