Installing C/C++ Development Tools on a Windows Platform
Contributed and maintained by
December 2007 [Revision number: V6.0-1]
In order to build and debug C/C++ executables and libraries on the Windows platform,
a minimal set of development tools must be installed.
These tools are not bundled with the NetBeans C/C++ plugin.
This how-to tells how to install the Cygwin versions of these tools.
For more information about working with C/C++ applications in the NetBeans IDE, see the C/C++ Applications Learning Trail page on the
NetBeans web site.
Tutorial Requirements
Before you proceed, make sure you review the requirements in this section.
Software Needed for This Tutorial
Before you begin, you need to install
NetBeans IDE
6.1.
The C/C++ installer option includes NetBeans IDE 6.1 and C/C++ support.
If your initial NetBeans download did not include the C/C++ plugin, you'll need
to go to the Available Plugins tab on the Tools > Plugins menu and install the C/C++ plugin.
Installing the Cygwin Build Tools
To install the GNU compilers, make, and gdb debugger from
cygwin.com:
Download the Cygwin setup.exe program by clicking the Install or Update Now!
icon in the middle of the page.
Run the setup.exe program. Accept the defaults until you reach
the Select Your Internet Connection page. Select the option on this
page that is best for you. Click Next.
On the Choose Download Site page, choose a download site you think
might be relatively close to you. Click Next.
On the Select Packages page you select the packages to download. Click
the + next to Devel to expand the development tools category. You may
want to resize the window so you can see more of it at one time.
Select each package you want to download by clicking the Skip label
next to it. At a minimum, select gcc-core: C compiler,
gcc-g++: C++ compiler, gdb: The GNU Debugger, and make: the GNU
version of the make utility.
Now add the compiler directory to your path:
Open the Control Panel (Start > Settings > Control Panel) and
double-click the System program.
Select the Advanced tab and click Environment Variables.
In the System Variables panel of the Environment Variables dialog,
select the Path variable and
click Edit.
Add the path to the
cygwin-directory\bin directory to the Path variable, and
click OK. By default, cygwin-directory is
C:\cygwin. Directory names must be separated with a semicolon.
Click OK in the Environment Variables dialog and the System
Properties dialog.
The Cygwin build tools are one of two fully supported sets of Build tools for
Windows. The other set is MinGW. MinGW users must
also download portions of the MSYS environment. Refer to the MinGW website for
details about downloading and installing MinGW and MSYS.