Including paths and symbols

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. Include paths are also used by the builder to locate files that are not in the workspace.

You can define the properties on a per project basis in the New Project wizard, in the C/C++ Projects view or in the Navigator view. You can also define project properties in the Preferences window for future standard make projects.

To include paths and symbols:

  1. To set properties for future Standard Make projects click Window > Preferences .
  2. Expand C/C++
  3. Click New Make Projects.
  4. Click the Paths and Symbols tab.
    Screen Capture for creating a new project
  5. For either Include Paths or Defined Symbols click Manage.
    Screen Capture for creating a new project
  6. Click New
  7. Enter the include path or defined symbol and click OK.
  8. Click OK to close the Manage dialog box.
  9. Click OK to close the Preferences dialog box.

Related concepts
CDT Projects
Project file views

Related tasks
Working with C/C++ project files

Related reference
Paths and symbols page, C/C++ Properties window

IBM Copyright Statement