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 Folders Recursively



Hi,

I am programming C6747 with CCS v4. When I set "include folder"s using property window of a project, I can see that these paths are passed to compiler with -i parameter as expected. However, I think that subdirectories under a specified directory aren't included by compiler. For example, let's say that I am compiling with parameter -i "/includes". If a header file is located under a subdirectory, for example "/includes/headers", compiler doesn't read that file. Is it possible to include also files under subdirectories? 

Thanks

Alper

  • Alper Yazar said:
    Is it possible to include also files under subdirectories? 

    No.  The full include file search method is given in the section titled The Search Path for #include Files in the C6000 compiler manual.  Subdirectories are never searched.

    Thanks and regards,

    -George

  • Hi Georgem,

    Thanks for your intereset.

    Maybe Eclipse can do this for me? When I add a folder in project properties window, Eclipse may search subfolders and expand include parameters. Continuing on same example, when I add "/include", Eclipse passes both "/include" and "/include/headers" as a seperate -i parameter to compiler. Has Eclipse such a feature?

    Thanks

    Alper

  • Alper Yazar said:
    Continuing on same example, when I add "/include", Eclipse passes both "/include" and "/include/headers" as a seperate -i parameter to compiler. Has Eclipse such a feature?

    As far as I know, Eclipse cannot do this automatiically either. You would need to manually add each folder as a separate include path.