Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: bc648ebe982301be15ad4e54f1de40d92b91a580 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html lang="en">

<html lang="en">
<head>
<meta http-equiv="content-language" content="en-us">
<meta name="generator" content="Microsoft FrontPage 5.0">
<meta name="progid" content="FrontPage.Editor.Document">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Creating your project</title>
<link href="../help.css" type="text/css" rel="stylesheet"></head>
<body> <h1>Creating your project</h1>  <p>You need to create a project to
contain your source code and related files. A  project has an associated builder
that can incrementally compile source files as  they are changed.</p> <p>
To create your project:</p> <ol>
<li>Click <b>File > New > Project</b>.<br>   The New Project Wizard opens.
</li>
<li>Select <b>C++</b>.</li>
<li>Click <b>Standard Make C++ Project</b>.<br>   You can also create a managed
make C++ project so that a makefile is automatically    generated. For the
purpose of this tutorial, you will create a standard    make C++ project which
requires you to provide a makefile in order to build    the project.</li>
<li>Click <b>Next</b>.</li>
<li>In the Name box, type <b>HelloWorld</b>.</li>
<li>Leave the <b>Use Default Location</b> check box selected.<br> Note that
the location of the workspace folder where your project is saved is grayed
out in the Location box.</li>
<li>Click <b>Next</b>.</li>
<li>Click the Binary Parser tab.</li>
<li>In the <b>Binary Parser</b> list, click <b>PE Windows Parser</b>.</li>
<p>To ensure the accuracy of the C/C++  Projects view and the ability to successfully
run and debug your programs,  select the correct parser is important. After
you select the correct parser for your development environment and build your
 project, you can view the components of the .o file in the C/C++ Projects
view.  You can also view the contents of the .o file in the C/C++ editor.
</p>
<li>Click <b>Finish</b>.</li>
<li>If a message box prompts you to switch perspectives, click <b>Yes</b>.
</li>
</ol>  <p>Your new project is displayed in the C/C++ Projects  view and in
the Navigator view. Your project is empty because you have not yet created
files for your project. You can now start writing the code for your  HelloWorld
program.</p>  <p><b>Tip:</b> You can view and modify the properties of your
HelloWorld project by  right-clicking on the project in the C/C++ Projects
view and clicking Properties.</p>  <p><a style="text-decoration: none" href="cdt_w_newcpp.htm"><img
src="../images/ngnext.gif" height="16" width="16" border="0"></a> <a href="cdt_w_newcpp.htm"><b>
Next: Creating your C++ file</b></a></p>  <p align="left">For more information
about:</p>  <ul>
<li>Projects, see <b>Workbench User Guide > Concepts > Workbench  > Resources
</b></li>
<li>The workspace, see <b>Workbench User Guide  > Tasks > Upgrading Eclipse
</b></li>
</ul>  <p><img src="../images/ngconcepts.gif" alt="Related concepts" height="21" width="143"
border="0"> <br> <a href="../concepts/cdt_c_over_cdt.htm">CDT overview</a><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 src="../images/ngtasks.gif" alt="Related tasks" height="21" width="143"
border="0"> <br> <a href="../tasks/cdt_o_proj_prop.htm">Defining project properties
</a><br> <a href="../tasks/cdt_o_proj_files.htm">Working with C/C++ project files</a></p> <p><img
src="../images/ngref.gif" alt="Related reference" height="21" width="143" border="0"> <br> <a
href="../reference/cdt_o_proj_prop_pages.htm">C/C++ Projects view</a></p>  <p><img src="../images/ngtasks.gif"
alt="IBM Copyright Statement" height="14" width="324" border="0"></p></body>
</html>

Back to the top