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.

C/C++ Include Paths & Symbols



A feature seems to have moved/disappeared in CCS 4.2.  Please see the screen capture here.  Where has that feature gone?  Often when using APIs out of a library CCS fails to find these references.  That path allowed me to manually point to an include directory to help CCS find the sources I'm referencing.  I can't seem to find it now!

  • It is still there in 4.2.  What type of project are you looking at in 4.2.  If I am using a CCS project I don't see it but if I am using a standard make project I do.  Based on your screen capture I believe it is from a standard make project as the CCS Build item is not listed on the left (just like mine below).

     

  • The original screenshot was from a standard make project but I am using a managed make project right now.  So I guess that explains why the options are different.  That said, is there a way to make the editor "find" relevant sources?  For example, I was working on an old 5502 project which uses CSL 2.x.  I tried right-clicking on one of the macro definitions (as defined in the csl header files) but it would not open the definition.  Does it "know" to look along the compiler search path for those header files?  If not, how I do I tell it where to look?

  • JohnS said:
    What type of project are you looking at in 4.2.

    GenCodecPkg generates Standard Make projects.

    Chris

  • Brad Griffis said:

    is there a way to make the editor "find" relevant sources?  For example, I was working on an old 5502 project which uses CSL 2.x.  I tried right-clicking on one of the macro definitions (as defined in the csl header files) but it would not open the definition.  Does it "know" to look along the compiler search path for those header files?  If not, how I do I tell it where to look?

    In 4.x the indexer is not good about searching external resources.  If you click on the include file listed in the outline view it will open it but it will not index those files for using open definition/declaration.  In v5 this seems to work much better.

    For example in this code _STDIO is defined in stdio.h

     

    If I click on it and hit F3 it will open stdio.h and go the the correct line: