Skip to main content
summaryrefslogtreecommitdiffstats
blob: 914011066cfd8b205a7b42cd15066f0fd79c6dce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
  <meta http-equiv="Content-Language" content="en-us">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Adding Include paths and symbols</title>
  <link rel="stylesheet" type="text/css" href="../help.css">
<script language="JavaScript">
function newWin(url) {
	window.open(url, 'install_cdt', 'width=930, height=790, menubar=no, toolbar=no, status=no, resizable=yes, location=no, scrollbars=yes');
}
</script>
</head>
<body>
<div role="main"><h1>Adding Include paths and symbols</h1>
<p>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. </p>

<p>If Autodiscovery is enabled, after a build finishes, any
discovered paths and symbols will be displayed in the <strong>Discovered Paths</strong>
section. You can also define the properties on a per project basis in
the C/C++ Projects or Navigator views.</p>
<p>To add include paths and symbols:</p>
<ol>
  <li>To set properties for your project, right-click your CDT
project and select <strong>Properties</strong>. Alternatively, to set properties
for a specific source file in your project, right-click a source file
within your make project and select <span
 style="font-weight: bold;">Properties</span>. </li>
  <li>Expand <strong>C/C++ General</strong> and select <strong>Paths and Symbols</strong>.
 <p><br><a href="javascript:void(0)" onClick="newWin('../images/c_paths.png')">Click here to see an illustration (displayed in a separate window)</a>.</p><br>
</li>
  <li>Click <strong>Add</strong> to define new element (Include Path, Symbol, Library path etc).
  </li>
  <li>Click <strong>Edit</strong> to change selected element (Include Path, Symbol, Library path etc).
  </li>
  <li>Click <strong>Delete</strong> to remove selected element (Include Path, Symbol, Library path etc).
  </li>
  <li>Click <strong>Export</strong> to make selected element (Include Path, Symbol, Library path etc) exported.
  </li>
  <li>Click <strong>Unexport</strong> to remove selected element (Include Path, Symbol, Library path etc) from export list.
  </li>
  <li>Click <strong>Move up</strong> and <strong>Move down</strong> to set elements (Include Paths, Library paths etc) order.
  </li>
</ol>
<p><img src="../images/ngconcepts.gif" alt="Related concepts" 
 height="21" width="143"><br>
<a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br>
<a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p>
<p><img src="../images/ngtasks.gif" alt="Related tasks" 
 height="21" width="143"><br>
<a href="cdt_o_proj_files.htm">Working with C/C++ project files</a></p>
<img src="../images/ng00_04a.gif" alt="QNX Copyright Statement">
</div></body>
</html>

Back to the top