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

62 lines
No EOL
2.9 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>Including paths and symbols</title>
<link rel="stylesheet" type="text/css" href="../help.css">
<script language="JavaScript">
function changeSize(theImage,wd,ht) {
wdth=parseInt(theImage.style.width); hght=parseInt(theImage.style.height);
if ( !(wdth==(wd*2)) ) {wdth=wd*2; hght=ht*2;}
else {wdth=wd;hght=ht;}
theImage.style.width=wdth; theImage.style.height=hght;
}
</script>
</head>
<body>
<h1>Including paths and symbols</h1>
<p>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. Include paths are also used by the builder to locate files that
are not in the workspace.</p>
<p>You can define the properties on a per project basis in the New Project
wizard, in the C/C++ Projects view or in the Navigator view. You can also define
project properties in the Preferences window for future standard make projects.</p>
<p>To include paths and symbols:</p>
<ol>
<li>To set properties for future Standard Make projects click <b>Window &gt; Preferences</b>.
<li>Expand <b>C/C++</b></li>
<li>Click <b>New Make Projects</b>.</li>
<li>Click the <b>Paths and Symbols</b> tab.<br>
<img src="../images/new_make-paths_symbols.png" width="308" height="306" onClick="changeSize(this,308,306);"
alt="Screen Capture for creating a new project" title="click to toggle image size"></li>
<li>For either <b>Include Paths</b> or <b>Defined Symbols</b> click <b>Manage</b>.<br>
<img src="../images/manage_include_path.png" width="295" height="244" onClick="changeSize(this,295,244);"
alt="Screen Capture for creating a new project" title="click to toggle image size"></li>
<li>Click <b>New</b></li>
<li>Enter the include path or defined symbol and click <b>OK</b>.</li>
<li>Click <b>OK</b> to close the Manage dialog box.</li>
<li>Click <b>OK</b> to close the Preferences dialog box.</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>
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21"><br>
<a href="../reference/cdt_u_newproj_pathsymb.htm">Paths and symbols page, C/C++ Properties window</a></p>
<img src="../images/ng03_04.gif" ALT="IBM Copyright Statement" BORDER=0 width="324" height="14">
</body>
</html>