blob: a59cee9fb008d48d82d7cc2802fe2f2e60518264 (
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
|
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
<html xmlns="http://www.w3.org/1999/xhtml"
>
<head><title>Testing the environment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" />
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" />
<!-- xhtml,3,next,html -->
<meta name="src" content="etrice-doc.tex" />
<meta name="date" content="2013-03-26 21:41:00" />
<link rel="stylesheet" type="text/css" href="etrice-doc.css" />
</head><body
>
<!--l. 19--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse33.html" >next</a>] [<a
href="etrice-docch9.html" >prev</a>] [<a
href="etrice-docch9.html#tailetrice-docch9.html" >prev-tail</a>] [<a
href="#tailetrice-docse32.html">tail</a>] [<a
href="etrice-docch9.html#etrice-docse32.html" >up</a>] </p></div>
<h3 class="sectionHead"><span class="titlemark">9.1 </span> <a
id="x43-590009.1"></a>Testing the environment</h3>
<!--l. 21--><p class="noindent" >To verify the C tool chain you should generate and run the Hello World example program of the CDT.
Activate the <span
class="ecti-1000">C/C++ </span>perspective.
</p><!--l. 23--><p class="noindent" ><img
src="images/032-SetupWorkspaceC03.png" alt="PIC"
/>
</p><!--l. 26--><p class="noindent" >From the main menu select <span
class="ecti-1000">File->New->C Project</span>.
</p><!--l. 28--><p class="noindent" ><img
src="images/032-SetupWorkspaceC02.png" alt="PIC"
/>
</p><!--l. 31--><p class="noindent" >Name the project. Select an <span
class="ecti-1000">Executable->Hello World ANSI C </span>as project type, <span
class="ecti-1000">MinGW GCC </span>as tool
chain and click <span
class="ecti-1000">Finish</span>.
</p><!--l. 33--><p class="noindent" ><img
src="images/032-SetupWorkspaceC04.png" alt="PIC"
/>
</p><!--l. 36--><p class="noindent" >Select the new project and click the build button (or right click the project and select <span
class="ecti-1000">Build</span>
<span
class="ecti-1000">Project</span>)
</p><!--l. 38--><p class="noindent" ><img
src="images/032-SetupWorkspaceC05.png" alt="PIC"
/>
</p><!--l. 41--><p class="noindent" >The binary should be generated. Run the binary as <span
class="ecti-1000">Local C/C++ Application</span>.
</p><!--l. 43--><p class="noindent" ><img
src="images/032-SetupWorkspaceC06.png" alt="PIC"
/>
</p><!--l. 46--><p class="noindent" >Verify the output.
</p><!--l. 48--><p class="noindent" ><img
src="images/032-SetupWorkspaceC07.png" alt="PIC"
/>
</p><!--l. 51--><p class="noindent" >Remember these steps. In the following Tutorials these steps will be referenced as <span
class="ecti-1000">build and</span>
<span
class="ecti-1000">run</span>.
</p>
<!--l. 54--><div class="crosslinks"><p class="noindent">[<a
href="etrice-docse33.html" >next</a>] [<a
href="etrice-docch9.html" >prev</a>] [<a
href="etrice-docch9.html#tailetrice-docch9.html" >prev-tail</a>] [<a
href="etrice-docse32.html" >front</a>] [<a
href="etrice-docch9.html#etrice-docse32.html" >up</a>] </p></div>
<!--l. 54--><p class="noindent" ><a
id="tailetrice-docse32.html"></a> </p>
</body></html>
|