Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1c31cec923edef65dd8f8a1709d29af7846d0002 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html lang="en">
<head>
  <meta http-equiv="Content-Language" content="en-us">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>C/C++ File Properties, Discovery Options</title>
  <link rel="stylesheet" type="text/css" href="../help.css">
</head>
<body>
<div role="main"><h1>C/C++ File Properties, Discovery Options</h1>
<p>Use the <strong>Discovery Options</strong> property panel to define the discovery option properties of a C/C++ file's.<br>
</p>

<p><img src="../images/cdt_file_discovery.png" alt="C/C++ File Properties, Discovery Options"></p>

<table cellpadding="5" cellspacing="0" border="1" bordercolor="#DDDDDD" width="700" >
	<caption><strong>Discovery options</strong></caption>	
	<colgroup>
		<col width="30%" valign="top" >
		<col width="70%" valign="top" >
	</colgroup>
	<tbody> 
		<tr valign="top" >
			<th id="option"><strong>Option</strong></th>
			<th id="description"><strong>Description.</strong></th>
		</tr>
		<tr valign="top" >
			<td headers="option"><strong>Configuration</strong></td>
			<td headers="description"><a href="cdt_u_prop_all.htm">Click here for a description.</a></td>
		</tr>
		<tr valign="top" >
			<td headers="option"><strong>Manage Configurations...</strong></td>
			<td headers="description"><a href="cdt_u_prop_all.htm">Click here for a description.</a></td>
		</tr>
		<tr valign="top" >
			<td headers="option"><strong>Exclude resource from build</strong></td>
			<td headers="description">Excludes the selected file from the build process.</td>
		</tr>
		<tr valign="top" >
			<td headers="description">Left pane list (language specific)</td>
			<td headers="description">Shows a list of language specific compilers. Select a language from the list.</td>
		</tr>
		<tr valign="top" >
			<td headers="option"><strong>Automate discovery of paths and symbols</strong></td>
			<td headers="description">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 <strong>Discovery profile options</strong> below do not appear.</td>
		</tr>
		<tr valign="top" >
			<td headers="option"><strong>Report path detection problems</strong></td>
			<td headers="description">Sets the notification of diagnostic errors for include paths that the Eclipse CDT is unable to resolve as it parses the build output.</td>
		</tr>
		<tr valign="top" >
			<td headers="option"><strong>Discovery profile options</strong></td>
			<td headers="description">Indicates the discovery profile to use for paths and symbol detection. The type of <strong>Configuration</strong> and <strong>Discovery Profile Scope</strong> you specify determine what which <strong>Discovery Profile</strong> options display on this tab. This set of controls is profile-specific. It may vary from one profile to another.</td>
		</tr>		
		<tr valign="top" >
			<td headers="option"><strong>Enable generate scanner info command</strong></td>
			<td headers="description">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. 
				<p>When selected, you can specify any required compiler specific commands in the <strong>Compiler invocation command</strong> field.</p>
			</td>
		</tr>
		<tr valign="top" >
			<td headers="option"><strong>Compiler invocation command</strong></td>
			<td headers="description">Indicates the compiler specific command used to invoke the compiler (such as <span class="typewriter">gcc</span>, 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 <strong>gcc -E -P -v hello.c | hello.cpp</strong> 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 <strong>Enable build output scanner info discovery</strong> option), and is added to the project's scanner configuration. You can click <strong>Browse</strong> to locate this command, if required.
			
			<p><strong>Note:</strong> 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>
     <ul>
        <li><samp>-D <span style="font-style: italic;">name</span></samp></li>
        <li><samp>-I</samp></li>     
        <li><samp>-U <span style="font-style: italic;">name</span></samp></li>
        <li><samp>-I-</samp></li>
        <li><samp>-nostdinc</samp></li>
        <li><samp>-nostdinc++</samp></li>
        <li><samp>-include <span style="font-style: italic;">file</span></samp></li>
        <li><samp>-imacros <span style="font-style: italic;">file</span></samp></li>
        <li><samp>-idirafter <span style="font-style: italic;">dir</span></samp></li>
        <li><samp>-isystem <span style="font-style: italic;">dir</span></samp></li>
        <li><samp>-iprefix <span style="font-style: italic;">prefix</span></samp></li>
        <li><samp>-iwithprefix <span style="font-style: italic;">dir</span></samp></li>
        <li><samp>-iwithprefixbefore <span style="font-style: italic;">dir</span></samp></li>
      </ul>
			</td>
		</tr>
		<tr valign="top" >
			<td headers="option"><strong>Browse</strong></td>
			<td headers="description">Click to browse for a file to include in the compiler invocation command. This button is only visible when <strong>Configuration</strong> is set to Release and the <strong>Discovery Profiles Scope</strong> is set to <strong>Configuration-wide</strong>.</td>
		</tr>
	    <tr>
	      <td valign="top" headers="option"><strong>Compiler invocation arguments </strong></td>
	      <td valign="top" headers="description">Enter additional argument options to pass on to the compiler. </td>
	    </tr>
		</tbody>
</table>

<p><img src="../images/ngref.gif" alt="Related reference" 
 height="21" width="143"><br>

<ul>
<li><a href=cdt_u_fprop_resource.htm>Resource</a></li>
<li>C/C++ Build
<ul>
   <li><a href=cdt_u_fileprop_discovery.htm>Discovery options</a></li>
   <li>Settings
   <ul> 
       <li><a href=cdt_u_fileprop_toolsettings.htm>Tool chains setting tab</a></li>
       <li><a href=cdt_u_fileprop_steps.htm>Build Steps tab</a></li>
    </ul>
    </li>
    <li><a href="cdt_u_prop_build_toolchain.htm">Tool chain editor page</a>
</ul>
</li>
<li>C/C++ General
<ul>
    <li><a href="cdt_u_fileprop_lang_mapp.htm">Language Mappings</a>
    <li>Paths and Symbols
    <ul>
       <li><a href="cdt_u_fileprop_inc.htm">Includes tab</a>
       <li><a href="cdt_u_fileprop_sym.htm">Symbols tab</a>
    </ul> 
    </li>
</ul>
</li>
<li><a href="cdt_u_prop_rundebug.htm">Run/Debug Settings page</a>
</ul>
<p></p>
<hr >
<p><img src="../images/intl_07.gif" ALT="Intel Copyright Statement" ></p>

</div></body>
</html>

Back to the top