From 7dbd86677cd698f7b1a0ed5b2ec12c3fc62cb7b4 Mon Sep 17 00:00:00 2001
From: Doug Schaefer
Do not install the MinGW Make feature as the MSYS version of make from step 3 +
Do not install the MinGW Make feature as the MSYS version of make from step 5 is a more complete implementation of make.
By default, the CDT filters the Toolchain and Project types that it displays in those lists based on the language support for the C++ Project wizard you selected for this tutorial.
In the Project name field, type a name for the project.
+In the Project name field, type a name for the project, such as Hello World.
From the Project types list, expand Executable and select Hello World C++ Project. This project type provides a simple Hello World application in C++, and the makefile is automatically created by the CDT.
A project is created with the default settings and a full set of configurations based on the project type and toolchain you selected. You should now see the new project in C/C++ Projects view.
+Click here to see an illustration.
+Now, you will create a new .cpp file (such as main.cpp) that will contain some code that you will copy from another file into an editor.
- +You should now see the new project in the C/C++ Projects view under the project, and the new file opens in the Editor view.
-
-You can double click the main.cpp tab in the Editor
-view to expand the view.
-Note: Leave a blank line at the end of the code because it is required by some compilers.
On the tab in the Editor view, an asterisk character ("*") prefixes the file name. The asterisk indicates that the file has changed but has not been saved.
-If you select an item from the Outline view, the -corresponding text in the editor is highlighted. -
You can read through the build messages in the Console view. -The project should build successfully, showing the following message:
-Finished building target: HelloWorld.exe
+This file opens in a default editor. It contains C++ template code for the Hello World example project you selected earlier.
+Note: You can specify a different editor, and add or modify existing code templates in Window > Preferences.
In addition, the Outline view has also been populated +with objects created from your code.
+
Next, you will need to build your project before you can run it.
Note: If a build generates any errors or warnings, you can see those in the Problems view. If you encounter difficulty, see the topics Building C/C++ projects and Before you begin
.
You will also see the Outline view has also been populated -with objects created from your code.
-If you select an item from the Outline view, the -corresponding text in the editor is highlighted.
To run your application:
A new Run Configuration is created. Its name and path to executable are provided by the project ('HelloWorld' in our case). +
A new Run Configuration is created. Its name and path to the executable are provided by the project ('Hello World' in our case). -
Now, you should now see the Hello World application running in the Console view. -The Console also shows which application is running in a title bar. -You can configure this view to display different elements (such as user input elements) using different colors.
-The title bar in the Console view shows you when the program has terminated.
+Now, you should see the Hello World application running in the Console view. +The Console also shows which application is running in a title bar.
The make output and build progress information displays in the -Console view. The Make Targets view displays makefile actions. The +Console view. The Make Targets view displays makefile actions, and the Tasks view displays compile warnings or errors.
To build a project:
If you see the error message:
+Exec error:Launching failed
+then CDT cannot locate the build command, usually make. Either your path is not configured correctly, or you do not have make installed on your system.
diff --git a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_existing_code.htm b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_existing_code.htm index 31ed4a873f9..da6b8908c5b 100644 --- a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_existing_code.htm +++ b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_existing_code.htm @@ -106,7 +106,7 @@ To check out existing C/C++ code that is not part of a project:The IDE displays the Check Out As dialog.
-
-
-
Typically existing projects will have their own makefiles, so you should create a new Standard Make C/C++ project. For more information see +
Typically, existing projects will have their own makefiles, so you should create a new Make C/C++ project. For more information see Creating a project and Working with C/C++ project files.
diff --git a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_import.htm b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_import.htm index 83b082b762d..11d7b362a12 100644 --- a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_import.htm +++ b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_import.htm @@ -8,26 +8,26 @@ -The following tutorial will walk you though the process of importing a simple application using the CDT.
+The following tutorial takes you though the process of importing a simple application using the CDT.
Step 1: You want to create a single project that will reflect all of the components for the existing source tree.
The New Project wizard dispalys. Click here to see an illustration (displayed in a separate window).
The New Project wizard displays. Click here to see an illustration (displayed in a separate window).
To obtain the latest CDT features:
Click here to see an illustration (displayed in a separate window).
Note: If you want to search for updates on features that you currently have installed, you can select the option Search for updates of the currently installed features.
Note: If you want to search for updates on features that you currently have installed, you can select the option Search for updates of the currently installed features, and then follow the steps to update using that method.
Click here to see an illustration.
Click here to see an illustration.
Click here to see an illustration.
Click here to see an illustration.
Click here to see an illustration.
Click here to see an illustration.
You can review the summary list of the features you selected to install.
-
Click here to see an illustration.
+You can review the summary list of the features you selected to install.
Click here to see an illustration.
Click here to see an illustration.
-Now, you have to restart Eclipse.
Now, you have to restart Eclipse. -
![]() |
- ![]() |
- ![]() |
-
n%tW2d&?(V=7;#FS+)(^V<+-du16$|6A2G7GA3aRUFF?!yU4=P{!I|O#
z{E9fWcgC*g;^<=cNC2^x89sI`#-#9ZolML59!<+YYIAaOuh=b4yW8nF3x*h*bWfYA
zH($y|1GKeh+6~j|l4nuHS#==q%PQjSu2?KVyRme-5sA1H%l;;TDN({3hoQFD^Dj?U
zqB=AP+D>==n7>667)@lGe#cF;LiYG{e }#kdts>K*j*?LmG{^O^)Q`8OIES}oG`
zT5ZmH1Yd8V=pAM_;*LjFi%fGSIqGfst`pz7y&Yv9JNSCFp}XA;P0rY-uE-b2qc}`y
z) |C_RucbmwqfU{
z_FCssJ?4`mG*|+L<*ab}eEE>rN)XH2j=4lFuWmzR~B-PK{glkqk@32LeI?
z^g
y}9nHtBJ%>-m5A@R+r=Zjg+pB_tC2j
zgYF|Z!Dgr1L?`#iM)>vSDc98_r$_Ks=K<;lf2@XN+=`|BJad(wpC?=P4%U%o-c%1o
z-fQJzB6VyLg1)581Ke*ONZ(MAOcmsgGWMXmw@v+~t_3zKKbG+<=$LpPN!L6n+^Ck$a}*3A
zjTIFBzSb97xLIyj2BdRo(Y`3yaP_(Jb6lz^?
RQSm`$B21jq5k@2qVNdVH(JH)mBBlWo8$I1hm{
zBqAV>y!)Z)iwO6S-~5T7@2scBLHp~`^w_9Z>gcuB(M2GP_3fM$F;X(4s++6Y_$`N;
z2q$j
zDAvhtz0-R>S$$u}k=VkZhV$vDY5WJkA8lZ
z-e$obHy{fAz;p;Ld}?7CcngG(puXScY^78Vv-G6*Y;tTN#e`KzV-d}_k*q^{^h)u1
z2-udUwWEs0!XFkg4pNa-OjfwhWO~T5-^TPmUB8X-Bw$`xl_C;j1%eDSr4
zqWrt)gDCyay-6Dg2muis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