Doc update.
|
@ -415,11 +415,11 @@ Configurations.menu=Build Configurations
|
|||
Index.menu=Index
|
||||
CDTWizard=CDT New Project Wizard
|
||||
|
||||
CDTproject=CDT project
|
||||
CDTproject=CDT Project
|
||||
CDTproject.desc=Create a new language-neutral project
|
||||
CPPproject=C++ project
|
||||
CPPproject=C++ Project
|
||||
CPPproject.desc=Create a new C++ project
|
||||
Cproject=C project
|
||||
Cproject=C Project
|
||||
Cproject.desc=Create a new C project
|
||||
|
||||
TemplatePreferencePage.name=Template Default Values
|
||||
|
|
|
@ -549,11 +549,11 @@ StdProjectTypeHandler.3=creation Make project: IBuilder is null
|
|||
CDTConfigWizardPage.0=Select configurations
|
||||
CDTCommonProjectWizard.0=Old project will be overridden
|
||||
CDTCommonProjectWizard.1=Existing project settings will be overridden.\nImport feature can be used instead to preserve old settings.\nOK to override ?
|
||||
NewModelProjectWizard.0=CDT project
|
||||
NewModelProjectWizard.0=CDT Project
|
||||
NewModelProjectWizard.1=Create CDT project of selected type
|
||||
NewModelProjectWizard.2=C++ project
|
||||
NewModelProjectWizard.2=C++ Project
|
||||
NewModelProjectWizard.3=Create C++ project of selected type
|
||||
NewModelProjectWizard.4=C project
|
||||
NewModelProjectWizard.4=C Project
|
||||
NewModelProjectWizard.5=Create C project of selected type
|
||||
BuildVarListDialog_0=Type:
|
||||
BuildVarListDialog_1=Text list
|
||||
|
|
|
@ -10,39 +10,39 @@
|
|||
<h2>Before you begin</h2>
|
||||
|
||||
<p>Depending on how you obtained the CDT, you might have also received
|
||||
a tool chain with a built-in CDT integration.
|
||||
However, if you downloaded the CDT from an update site, then you will require a tool chain before
|
||||
a toolchain with a built-in CDT integration.
|
||||
However, if you downloaded the CDT from an update site, then you will require a toolchain before
|
||||
you can build and debug any projects.</p>
|
||||
|
||||
<p>The base CDT supports integration with the GNU tool chain.
|
||||
<p>The base CDT supports integration with the GNU toolchain.
|
||||
This includes GNU's make, gcc compiler, and gdb debugger utilities.
|
||||
If you require a tool chain to build software for your development host, this
|
||||
If you require a toolchain to build software for your development host, this
|
||||
is the best choice to get started.
|
||||
|
||||
<p>Each platform that runs the CDT requires different steps to acquire this tool chain.</p>
|
||||
<p>Each platform that runs the CDT requires different steps to acquire this toolchain.</p>
|
||||
|
||||
<h3>Linux</h3>
|
||||
<p>All Linux distributions include the GNU tool chain. They may not, however, be installed by default.
|
||||
For instructions about installing the GNU tool chain for Linux, see the instructions for your particular distribution.</p>
|
||||
<p>All Linux distributions include the GNU toolchain. They may not, however, be installed by default.
|
||||
For instructions about installing the GNU toolchain for Linux, see the instructions for your particular distribution.</p>
|
||||
|
||||
<h3>Windows</h3>
|
||||
<p>For windows, MinGW, and Cygwin are the two main choices for acquiring the GNU tool chain:</p>
|
||||
<p>For windows, MinGW, and Cygwin are the two main choices for acquiring the GNU toolchain:</p>
|
||||
<ul>
|
||||
<li><a href="http://www.cygwin.com"><b>Cygwin</b></a> is a port of the Linux environment to Windows.
|
||||
It provides a compatibility layer in a set of DLLs. These DLLs are
|
||||
<a href="http://www.gnu.org/copyleft/gpl.html">GPL licensed</a>,
|
||||
making any code that links to them also subject to the GPL.
|
||||
Cygwin, however, does provide the fullest implementation of the GNU tool chain
|
||||
by supporting the GNU libc C library.
|
||||
Cygwin, however, does provide the fullest implementation of the GNU toolchain
|
||||
by supporting the GNU libc C runtime library.
|
||||
<p> <br></p>
|
||||
</li>
|
||||
<li><a href="http://www.mingw.org"><b>MinGW</b></a> is a port of the GNU tool chain to the Windows platform.
|
||||
The biggest difference over Cygwin is that MinGW uses the Windows C libraries (mscvrt) instead
|
||||
<li><p><a href="http://www.mingw.org"><b>MinGW</b></a> is a port of the GNU toolchain to the Windows platform.
|
||||
The biggest difference over Cygwin is that MinGW uses the Windows C runtime libraries (mscvrt) instead
|
||||
of GNU's libc. As a result, a compatibility layer is not required, thus avoiding the GPL issues
|
||||
with Cygwin. However, there are differences between the Windows and GNU C libraries that will make
|
||||
writing portable applications more difficult.
|
||||
with Cygwin. There are differences, though, between the Windows and GNU C runtime libraries that will make
|
||||
writing portable applications more difficult.</p>
|
||||
<br>
|
||||
<p>MinGW allows the best integration support with the CDT
|
||||
<p>However, MinGW provides the best integration support with the CDT
|
||||
due to it's direct support for the Windows environment.</p>
|
||||
<br>
|
||||
<p>The following are instructions and links on how to install the current version
|
||||
|
@ -64,15 +64,15 @@ MinGW File Release</a> section for the latest versions.</p>
|
|||
<a href="http://downloads.sourceforge.net/mingw/gdb-6.6.tar.bz2">gdb-6.6.tar.bz2</a>
|
||||
<li>Extract the contents of the file gdb-6.6.tar.bz2 to the same location where you installed MinGW.</li>
|
||||
<li>If you want to use Makefile projects, download and run the setup program from the following location:
|
||||
<a href="http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe">MSYS-1.0.10.exe</a>
|
||||
<p>MSYS provides an implementation of make and related command line tools.
|
||||
This is not required for other types of projects with the MinGW tool chain,
|
||||
<a href="http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe">MSYS-1.0.10.exe</a>.
|
||||
MSYS provides an implementation of make and related command line tools.
|
||||
This is not required for other types of projects with the MinGW toolchain,
|
||||
which use CDT's internal build tools to perform the build.</li>
|
||||
</ol>
|
||||
</ul>
|
||||
<br>
|
||||
<h3>Other Platforms</h3>
|
||||
<p>The GNU tool chain is supported on all platforms that the CDT supports. For instructions about installing the GNU tool chain
|
||||
<p>The GNU toolchain is supported on all platforms that the CDT supports. For instructions about installing the GNU toolchain
|
||||
on your platform, see your platform vendor.</p>
|
||||
|
||||
<p align="left"> <img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21"> <br>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="../help.css">
|
||||
<script language="JavaScript">
|
||||
function newWin(url) {
|
||||
window.open(url, 'install_cdt', 'width=750, height=700, menubar=no, toolbar=no, status=no, resizable=yes, location=no, scrollbars=yes');
|
||||
window.open(url, 'install_cdt', 'width=900, height=700, menubar=no, toolbar=no, status=no, resizable=yes, location=no, scrollbars=yes');
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
@ -27,37 +27,48 @@ With CDT 4.0, you now select a project type, and that determines what build syst
|
|||
<h3> Step 1: Creating a project</h3>
|
||||
<ol>
|
||||
<li>Select <b>File > New > Project</b>.</p>
|
||||
<p><br><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic20.png')">Click here to see an illustration (displayed in a separate window)</a>.</p><br></li>
|
||||
<li>Select the type of project to create. For this tutorial, expand the <b>C++</b> folder and select <b>C++ Project</b>.
|
||||
<p><br>The <b>C++ Project</b> wizard opens. <a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic19.png')">Click here to see an illustration.</a><br></p>
|
||||
<p><br>By default, the CDT filters the <b>Toolchain</b> and <b>Project types</b> that currently display in those lists are based on the language support for the C++ Project wizard you selected for this tutorial.
|
||||
<li>In the <b>Project name</b> field, type a name for the project.
|
||||
<li>From the <b>Project types</b> list, expand <b>Executable</b> and select <b>Hello World C++ Example</b>. This project type provides a simple Hello World application in C++, and the makefile is automatically created by the CDT.
|
||||
<p><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic02.png')">Click here to see an illustration (displayed in a separate window)</a>.</p><br></li>
|
||||
|
||||
<li>Select a required toolchain from the <b>Toolchain</b> list.
|
||||
<p>A toolchain is a set of tools (such as a compiler, linker, and assembler) intended to build your project.
|
||||
Additional tools, such as a debugger, can be associated with a toolchain.<br>
|
||||
There can be several toolchains available, depending on the compilers installed on your system.
|
||||
</p>
|
||||
<li>Optional: If you want to change these default settings, click <b>Advanced Settings</b> at Step 10instead of clicking <b>Finish</b>.
|
||||
|
||||
<p>If the <b>C++ perspective</b> is not currectly set as the default, you are prompted to determined if you would like to this project to be associated with the C/C++ perspective. Click <b>Yes</b>. <br><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_cpp_perspectx.png')">Click here to see an illustration.</a></p><br>
|
||||
|
||||
<p>A project is created with the default settings and a full set of configurations based on the project type and toolchain you selected.</p>
|
||||
|
||||
<li>If you clicked <b>Next</b> at Step 7, you can specify the basic properties for the new project, such as your name, copyright, and source information.</p><br>
|
||||
|
||||
<p><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic15.png')">Click here to see an illustration.</a></p><br>
|
||||
|
||||
<li>Click <b>Next</b>.
|
||||
|
||||
<p>The Select Configurations window displays a list of configurations based on the project type and toolchain(s) you selected earlier. <br><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic14.png')">Click here to see an illustration.</a></p><br>
|
||||
|
||||
<li>Click <b>Finish</b>.
|
||||
|
||||
<p>You should now see the new project in C/C++ Projects view.</p>
|
||||
<p>If C/C++ perspective was not set as current before, it will be selected now.</p>
|
||||
<li>Select the type of project to create. For this tutorial, expand the <b>C++</b> folder and select <b>C++ Project</b> and click <b>Next</b>.
|
||||
<a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic03a.png')">Click here to see an illustration.</a><br></p>
|
||||
<p><br>The <b>C++ Project</b> wizard opens.</p>
|
||||
<a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic04.png')">Click here to see an illustration.</a><br></p>
|
||||
<p><br>By default, the CDT filters the <b>Toolchain</b> and <b>Project types</b> that it displays in those lists based on the language support for the C++ Project wizard you selected for this tutorial.</p>
|
||||
</li><br>
|
||||
<li><p>In the <b>Project name</b> field, type a name for the project.</p>
|
||||
<br>
|
||||
<li><p>From the <b>Project types</b> list, expand <b>Executable</b> and select <b>Hello World C++ Project</b>. This project type provides a simple Hello World application in C++, and the makefile is automatically created by the CDT.</p>
|
||||
<br>
|
||||
<li><p>Select a required toolchain from the <b>Toolchain</b> list.</p>
|
||||
<br>
|
||||
<p>A toolchain is a set of tools (such as a compiler, linker, and assembler) intended to build your project.
|
||||
Additional tools, such as a debugger, can be associated with a toolchain.
|
||||
There can be several toolchains available, depending on the compilers installed on your system.</p>
|
||||
<br>
|
||||
<li><p>Click <b>Next</b>.</p>
|
||||
<br>
|
||||
<p>The Select Configurations window displays a list of configurations based on the project type and toolchain(s) you selected earlier.
|
||||
<br>
|
||||
<a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic07.png')">Click here to see an illustration.</a></p>
|
||||
<br>
|
||||
<li><p>Optional: If you want to change the default project settings, click <b>Advanced Settings</b>.</p>
|
||||
<br>
|
||||
<p>This opens the project properties dialog for your new project allowing you change any of the project specific settings,
|
||||
such as includes paths, compiler options, and libraries.</p>
|
||||
<p><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic21.png')">Click here to see an illustration.</a></p>
|
||||
<br>
|
||||
<li>If you clicked <b>Next</b> at Step 6, you can specify the basic properties for the new project, such as your name, copyright, and source information.</p>
|
||||
<p><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_basic22.png')">Click here to see an illustration.</a></p>
|
||||
<br>
|
||||
<li><p>Click <b>Finish</b>.</p>
|
||||
<br>
|
||||
<li><p>If the <b>C++ perspective</b> is not currently set as the default, you are prompted to determined if you would like to this project to be associated with the C/C++ perspective. Click <b>Yes</b>.
|
||||
<br><p><a href="javascript:void(0)" onClick="newWin('../images/cdt_w_cpp_perspectx.png')">Click here to see an illustration.</a></p>
|
||||
<br>
|
||||
<p>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.</p>
|
||||
</ol>
|
||||
|
||||
<h3>Step 2: Creating a new file for the project</h3>
|
||||
<p>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. </p>
|
||||
|
||||
|
|
Before Width: | Height: | Size: 39 KiB |
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_w_basic03a.png
Normal file
After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 26 KiB |
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_w_basic21.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_w_basic22.png
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 13 KiB |