carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/reference/cdt_u_fileprop_discovery.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
  <meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
  <title>C/C++ File Properties, Discovery Options</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
  <link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
<h1>C/C++ File Properties, Discovery Options</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
<p>You can define the discovery options on the Discovery Options page
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
of a C/C++ project's properties window.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<p style="margin-left: 40px;"><img img=""
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
 src="../images/cdt_file_discovery.png"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
 alt="C/C++ File Properties, Discovery Options"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
 ><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
<table cellpadding="5" cellspacing="0" border="1" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
	<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
		<caption><b>Discovery options</b></caption>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
	<br>	
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
	<colgroup>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
		<col width="30%" valign="top" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
		<col width="70%" valign="top" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
	</colgroup>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
	<tbody> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
			<td><b>Configuration</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
			<td><a href="cdt_u_prop_all.htm">Click here for a description.</a></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
			<td><b>Manage configurations</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
			<td><a href="cdt_u_prop_all.htm">Click here for a description.</a></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
			<td><b>Exclude resource from build</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
			<td>Excludes the selected file from the build process.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
			<td>Left pane list (language specific)</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
			<td>Shows a list of language specific compilers. Select a language from the list.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
			<td><b>Automate discovery of paths and symbols</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
			<td>Scans the build output to populate the path and symbol tables, such as symbol definitions, system include directories, local include directories, macros files, and include files. If this option is not selected, the <b>Discovery profile options</b> below do not appear.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
				<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
			<td><b>Report path detection problems</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
			<td>Sets the notification of diagnostic errors for include paths that the Eclipse CDT is unable to resolve as it parses the build output.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
			<td><b>Discovery profile options</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
			<td>Indicates the discovery profile to use for paths and symbol detection. The type of <b>Configuration</b> and <b>Discovery Profile Scope</b> you specify determine what which <b>Discovery Profile</b> options display on this tab. This set of controls is profile-specific. It may vary from one profile to another.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
		</tr>		
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
			<td><b>Enable generate scanner info command</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
			<td>Enables the retrieval of information from the scanner. If it is not selected, the includes will be populated with default gcc system includes; Eclipse gathers the compiler settings based on the specified toolchain. This means that the Eclipse CDT can obtain the default gcc system includes to associate with the project. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
				<p>When selected, you can specify any required compiler specific commands in the <b>Compiler invocation command</b> field.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
			<td><b>Compiler invocation command</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
			<td>Indicates the compiler specific command used to invoke the compiler (such as <tt>gcc</tt>, or more complicated commands used to perform all necessary steps for compiling C/C++ source files into .o files, and linking the object files and libraries into an executable program. For example, the command <b>gcc -E -P -v hello.c | hello.cpp</b> reads a compiler's configuration file and prints out information that includes the compiler's internally defined preprocessor symbols and include search paths. The information is complementary to the scanner configuration discovered when the output is parsed (if you've enabled the <b>Enable build output scanner info discovery</b> option), and is added to the project's scanner configuration. You can click <b>Browse</b> to locate this command, if required.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
			
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
			<p><b>Note:</b> The parsing of build output for scanner information is compiler specific. For example, the GNU toolchain compilers (gcc and g++) use -I for include paths, and -D for symbol definitions. Consult your compiler specific documentation for more information about scanner information commands, such as the following gcc commands:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
     <ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
        <li><samp>-D <span style="font-style: italic;">name</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
        <li><samp>-I</samp></li>     
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
        <li><samp>-U <span style="font-style: italic;">name</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
        <li><samp>-I-</samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
        <li><samp>-nostdinc</samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
        <li><samp>-nostdinc++</samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
        <li><samp>-include <span style="font-style: italic;">file</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
        <li><samp>-imacros <span style="font-style: italic;">file</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
        <li><samp>-idirafter <span style="font-style: italic;">dir</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
        <li><samp>-isystem <span style="font-style: italic;">dir</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
        <li><samp>-iprefix <span style="font-style: italic;">prefix</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    81
        <li><samp>-iwithprefix <span style="font-style: italic;">dir</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    82
        <li><samp>-iwithprefixbefore <span style="font-style: italic;">dir</span></samp></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    83
      </ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    84
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    85
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    86
			<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    87
			<td><b>Browse</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    88
			<td>Click to browse for a file to include in the compiler invocation command. This button is only visible when <b>Configuration</b> is set to Release and the <b>Discovery Profiles Scope</b> is set to <b>Configuration-wide</b>.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    89
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    90
		</tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    91
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    92
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    93
<p><img src="../images/ngref.gif" alt="Related reference" border="0"
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    94
 height="21" width="143"><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    95
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    96
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    97
<li><a href=cdt_u_fprop_resource.htm>Resource</a></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    98
<li>C/C++ Build</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    99
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   100
   <li><a href=cdt_u_fileprop_discovery.htm>Discovery options</a></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   101
   <li>Settings</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   102
   <ul> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   103
       <li><a href=cdt_u_fileprop_toolsettings.htm>Tool chains setting tab</a></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   104
       <li><a href=cdt_u_fileprop_steps.htm>Build Steps tab</a></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   105
    </ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   106
    <li><a href="cdt_u_prop_build_toolchain.htm">Tool chain editor page</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   107
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   108
<li>C/C++ General</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   109
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   110
    <li><a href="cdt_u_fileprop_lang_mapp.htm">Language Mappings</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   111
    <li>Paths and Symbols</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   112
    <ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   113
       <li><a href="cdt_u_fileprop_inc.htm">Includes tab</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   114
       <li><a href="cdt_u_fileprop_sym.htm">Symbols tab</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   115
    </ul> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   116
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   117
<li><a href="cdt_u_prop_rundebug.htm">Run/Debug Settings page</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   118
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   119
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   120
<p><img src="../images/intl_07.gif" ALT="Intel Copyright Statement" ></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   121
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   122
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   123
</html>