Adding Include paths and symbols

For Standard Make projects you can define include paths and preprocessor symbols for the parser. This enables the parser to understand the contents of the C/C++ source code so that you may more effectively use the search and code completion features.

If Autodiscovery is enabled once a build has completed any discovered paths and symbols will be displayed in the Discoverd Paths section. You can also define the properties on a per project basis in the C/C++ Projects or Navigator views.

To add include paths and symbols:

  1. To set properties for your project right click your standard make project and select Properties. Alternatively, to set properties for a specific source file in your project right click a source file within your standard make project and select Properties.
  2. Click C/C++ Include Paths and Symbols.
    Paths and Symbols Prefereces Window
     
  3. Select Add Preprocessor Symbol...
    Add Preprocessor Symbols Window
    and enter your symbol.
     
  4. Select Add External Include Path...
    Add External Include Path Window
    and enter your path.
     
  5. Select the container and click Edit to change the order in which your new path or symbol is used.
    Edit Paths and Symbols Container Window
     
  6. Select the new object and click Up or Down to move it higher or lower in the order, or you can disable it by clicking Disable.
  7. Click Finish to close the Edit Container window.
  8. Click OK to close the Preferences window.

Related concepts
CDT Projects
Project file views

Related tasks
Working with C/C++ project files

IBM Copyright Statement