Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8a9fabd012ce981e51dc6ea90e94e7fa66633243 (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
56
57
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<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">
</head>
<body>
<h1>Adding Include paths and symbols</h1>
<p>For CDT 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. </p>

<p>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.</p>
<p>To add include paths and symbols:</p>
<ul>
  <li>To set properties for your project right click your CDT
project and select <b>Properties</b>. Alternatively, to set properties
for a specific source file in your project right click a source file
within your standard make project and select <span
 style="font-weight: bold;">Properties</span>. </li>
  <li>Click <b>C/C++ Include Paths and Symbols</b>.<br>
    <img src="../images/c_paths.png"
 alt="Paths and Symbols Property Window - Symbols Tab">
 <br>
 <br>
    <img src="../images/c_symbols.png"
 alt="Paths and Symbols Property Window - Includes Tab"><br>
&nbsp;</li>
  <li>Use "Add" button to define new element (Include Path, Symbol, Library path etc).
  </li>
  <li>Use "Edit" button to change selected element (Include Path, Symbol, Library path etc).
  </li>
  <li>Use "Delete" button to remove selected element (Include Path, Symbol, Library path etc).
  </li>
  <li>Use "Export" button to make selected element (Include Path, Symbol, Library path etc) exported.
  </li>
  <li>Use "Unexport" button to remove selected element (Include Path, Symbol, Library path etc) from export list.
  </li>
  <li>Use "Move up" and "Move down" buttons to set elements (Include Paths, Library paths etc) order.
  </li>
</ul>
<p><img src="../images/ngconcepts.gif" alt="Related concepts" border="0"
 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" border="0"
 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="IBM Copyright Statement">
</body>
</html>

Back to the top