Set the include paths and define directives

Many of the enhanced source navigation (including opening header files) and code development accelerators available in the C/C++ editor are extracted from the source code. To enable these features and provide the most accurate data representation, you must properly configure the project with the include paths and define directives used to compile the source.

For BlackBerry projects, the include paths and definitions are set automatically based on the compiler and architecture. You can set additional values in the project's properties.

For Makefile projects, you must define the values. You can define the values manually in the project properties, or define them automatically using the Set QNX Build Environment option in the project's context menu.

To set the include paths and define directives for a C/C++ Make project:

  1. In the Project Explorer view, right-click your project and select Properties.
  2. On the Properties dialog box, expand C/C++ Build, and select Settings
  3. On the General settings tab, select the appropriate compiler for your project, and then click Apply.
  4. On the left, expand C/C++ General, and select Paths and Symbols.
  5. Specify any required include information, and then click OK.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus