|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
|
2 <html lang="en"> |
|
3 <head> |
|
4 <meta http-equiv="Content-Language" content="en-us"> |
|
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
6 <title>Adding Include paths and symbols</title> |
|
7 <link rel="stylesheet" type="text/css" href="../help.css"> |
|
8 <script language="JavaScript"> |
|
9 function newWin(url) { |
|
10 window.open(url, 'install_cdt', 'width=930, height=790, menubar=no, toolbar=no, status=no, resizable=yes, location=no, scrollbars=yes'); |
|
11 } |
|
12 </script> |
|
13 </head> |
|
14 <body> |
|
15 <h1>Adding Include paths and symbols</h1> |
|
16 <p>For CDT projects, you can define include paths and |
|
17 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> |
|
18 |
|
19 <p>If Autodiscovery is enabled, after a build finishes, any |
|
20 discovered paths and symbols will be displayed in the <b>Discoverd Paths</b> |
|
21 section. You can also define the properties on a per project basis in |
|
22 the C/C++ Projects or Navigator views.</p> |
|
23 <p>To add include paths and symbols:</p> |
|
24 <ol> |
|
25 <li>To set properties for your project, right-click your CDT |
|
26 project and select <b>Properties</b>. Alternatively, to set properties |
|
27 for a specific source file in your project, right-click a source file |
|
28 within your make project and select <span |
|
29 style="font-weight: bold;">Properties</span>. </li> |
|
30 <li>Expand <b>C/C++ General</b> and select <b>Paths and Symbols</b>. |
|
31 <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> |
|
32 </li> |
|
33 <li>Click <b>Add</b> to define new element (Include Path, Symbol, Library path etc). |
|
34 </li> |
|
35 <li>Click <b>Edit</b> to change selected element (Include Path, Symbol, Library path etc). |
|
36 </li> |
|
37 <li>Click <b>Delete</b> to remove selected element (Include Path, Symbol, Library path etc). |
|
38 </li> |
|
39 <li>Click <b>Export</b> to make selected element (Include Path, Symbol, Library path etc) exported. |
|
40 </li> |
|
41 <li>Click <b>Unexport</b> to remove selected element (Include Path, Symbol, Library path etc) from export list. |
|
42 </li> |
|
43 <li>Click <b>Move up</b> and <b>Move down</b> to set elements (Include Paths, Library paths etc) order. |
|
44 </li> |
|
45 </ol> |
|
46 <p><img src="../images/ngconcepts.gif" alt="Related concepts" border="0" |
|
47 height="21" width="143"><br> |
|
48 <a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br> |
|
49 <a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p> |
|
50 <p><img src="../images/ngtasks.gif" alt="Related tasks" border="0" |
|
51 height="21" width="143"><br> |
|
52 <a href="cdt_o_proj_files.htm">Working with C/C++ project files</a></p> |
|
53 <img src="../images/ng00_04a.gif" alt="QNX Copyright Statement"> |
|
54 </body> |
|
55 </html> |