2003-12-19 20:47:29 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
< html lang = "en" >
< head >
2004-04-12 14:50:50 +00:00
< 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" >
2003-12-19 20:47:29 +00:00
< / head >
< body >
< h1 > Tutorial< / h1 >
2004-04-12 14:50:50 +00:00
< 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 >
2003-12-19 20:47:29 +00:00
< h2 > Before you begin< / h2 >
2004-04-12 14:50:50 +00:00
< p > You must install and configure the following utilities:< / p >
2003-12-19 20:47:29 +00:00
< ul >
2004-04-12 14:50:50 +00:00
< 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 >
2003-12-19 20:47:29 +00:00
< / ul >
2004-04-12 14:50:50 +00:00
< 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 >
2003-12-19 20:47:29 +00:00
< 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 >
2004-04-12 14:50:50 +00:00
< td align = "left" width = "206" > < a href = "cdt_w_newproj.htm" > Creating your project< / a > < / td >
2003-12-19 20:47:29 +00:00
< / tr >
< tr >
2004-04-12 14:50:50 +00:00
< 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 >
2003-12-19 20:47:29 +00:00
< / tr >
< tr >
2004-04-12 14:50:50 +00:00
< 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 >
2003-12-19 20:47:29 +00:00
< / tr >
< tr >
< td align = "left" width = "279" > Build your project< / td >
2004-04-12 14:50:50 +00:00
< td align = "left" width = "206" > < a href = "cdt_w_build.htm" > Building your project< / a > < / td >
2003-12-19 20:47:29 +00:00
< / tr >
< tr >
< td align = "left" width = "279" > Create a debug configuration and debug
your project< / td >
2004-04-12 14:50:50 +00:00
< td align = "left" width = "206" > < a href = "cdt_w_debug.htm" > Debugging your project< / a > < / td >
2003-12-19 20:47:29 +00:00
< / tr >
2004-04-26 15:41:43 +00:00
< 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 >
2003-12-19 20:47:29 +00:00
< / table >
2004-04-12 14:50:50 +00:00
< 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 >
2003-12-19 20:47:29 +00:00
< / body >
< / html >