1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_proj_paths.htm
2004-06-24 20:26:35 +00:00

50 lines
No EOL
2.5 KiB
HTML

<!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 Standard Make 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>
<ol>
<li>To set properties for your project right click your standard make project and select <b>Properties</b>.
<li>Click <b>C/C++ Include Paths and Symbols</b>.<br>
<img src="../images/c_paths_symbols.png" alt="Paths and Symbols Prefereces Window"><br>&nbsp;</li>
<li>Select <b>Add Preprocessor Symbol...</b><br>
<img src="../images/add_preprocessor_symbol.png" alt="Add Preprocessor Symbols Window"><br>
and enter your symbol.<br>&nbsp;</li>
<li>Select <b>Add External Include Path...</b><br>
<img src="../images/add_external_include_path.png" alt="Add External Include Path Window"><br>
and enter your path.<br>&nbsp;</li>
<li>Select the container and click <b>Edit</b> to change the order in which your new path or symbol is used.<br>
<img src="../images/c_path_symbols_edit.png" alt="Edit Paths and Symbols Container Window"><br>&nbsp;</li>
<li>Select the new object and click <b>Up</b> or <b>Down</b> to move it higher or lower in the order, or you can disable it by clicking <b>Disable</b>.</li>
<li>Click <b>Finish</b> to close the Edit Container window.</li>
<li>Click <b>OK</b> to close the Preferences window.</li>
</ol>
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"><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 border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21"><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>