mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
77 lines
No EOL
3.5 KiB
HTML
77 lines
No EOL
3.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>Tutorial</title>
|
|
<link rel="stylesheet" type="text/css" href="../help.css">
|
|
</head>
|
|
<body>
|
|
<h1>Tutorial</h1>
|
|
<p>This tutorial guides you through the process of using the C/C++ Development Toolkit (CDT) to create a HelloWorld project on a Windows platform.</p>
|
|
<h2>Before you begin</h2>
|
|
<p>You must install and configure the following utilities:</p>
|
|
<ul>
|
|
<li>Build (such as <tt>make</tt>).</li>
|
|
<li>Compile (such as gcc). For more information, see <a href="http://gcc.gnu.org">http://gcc.gnu.org</a>.</li>
|
|
<li>Debug (such as gdb). For more information, see <a href="http://sources.redhat.com/gdb/">http://sources.redhat.com/gdb/</a>.</li>
|
|
</ul>
|
|
|
|
<p><b>Tip:</b> Cygwin contains these utilities for a Windows environment.
|
|
For more information, see <a href="http://www.cygwin.com">http://www.cygwin.com</a>.
|
|
</p>
|
|
<p>To test if cygwin was installed correctly open a command prompt and type <tt>g++</tt> or <tt>make</tt>.</p>
|
|
|
|
<p>The following error message means that no <tt>make</tt> is installed or your path is not configured correctly.</p>
|
|
<pre>'g++' (or 'make') is not recognized as an internal or external command, operable program or batch file</pre>
|
|
<p>To check your path at a command prompt and enter <tt>PATH</tt>. Make sure that the path to your build utility is defined (example <tt>PATH=c:\cygwin\bin</tt>).<p>
|
|
|
|
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="508">
|
|
<tr>
|
|
<th align="left" valign="bottom" width="279">To</th>
|
|
<th align="left" width="206">See</th>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" width="279">Create, name, and specify the location of your
|
|
project</td>
|
|
<td align="left" width="206"><a href="cdt_w_newproj.htm">Creating your project</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" width="279">Create, name, and save your CPP file</td>
|
|
<td align="left" width="206"><a href="cdt_w_newcpp.htm">Creating your C++
|
|
file</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" width="279">Create, name, and save your gnu <tt>makefile</tt></td>
|
|
<td align="left" width="206"><a href="cdt_w_newmake.htm">Creating your makefile</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" width="279">Build your project</td>
|
|
<td align="left" width="206"><a href="cdt_w_build.htm">Building your project</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" width="279">Create a debug configuration and debug
|
|
your project</td>
|
|
<td align="left" width="206"><a href="cdt_w_debug.htm">Debugging your project</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" width="334">Recommended approaches for dealing with source
|
|
files and files systems that were created outside of Eclipse</td>
|
|
<td align="left" width="110"><a href="../getting_started/cdt_w_existing_code.htm">How to bring
|
|
C/C++ source into Eclipse</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p> </p>
|
|
<p><a href="cdt_w_newmake.htm" style="text-decoration: none"> <img border="0" src="../images/ngnext.gif" width="16" height="16"></a>
|
|
<b><a href="cdt_w_newproj.htm">Start Tutorial: Creating your project</a> </b>
|
|
</p>
|
|
<p align="left"> <img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
|
|
<br>
|
|
<a href="../concepts/cdt_o_home.htm">CDT Home</a><br>
|
|
</p>
|
|
<p><img src="../images/ng2003.gif" ALT="IBM Copyright Statement" BORDER=0 width="324" height="14">
|
|
</p>
|
|
</body>
|
|
|
|
</html> |