Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse C/C++ Developer Guide
Previous Page Home Next Page

Adding Include paths and symbols

For CDT projects, you can define include paths and preprocessor symbols for the parser. This lets the parser understand the contents of the C/C++ source code so that you can more effectively use the search and code completion features.

If Autodiscovery is enabled, after a build finishes, 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 CDT project and select Properties. Alternatively, to set properties for a specific source file in your project, right-click a source file within your make project and select Properties.
  2. Expand C/C++ General and select Paths and Symbols.


    Click here to see an illustration (displayed in a separate window).


  3. Click Add to define new element (Include Path, Symbol, Library path etc).
  4. Click Edit to change selected element (Include Path, Symbol, Library path etc).
  5. Click Delete to remove selected element (Include Path, Symbol, Library path etc).
  6. Click Export to make selected element (Include Path, Symbol, Library path etc) exported.
  7. Click Unexport to remove selected element (Include Path, Symbol, Library path etc) from export list.
  8. Click Move up and Move down to set elements (Include Paths, Library paths etc) order.

Related concepts
CDT Projects
Project file views

Related tasks
Working with C/C++ project files

QNX Copyright Statement

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire