Article Source
Netbeans6.0 supports Java SE, Web & Java EE, Mobility, UML, SOA, Ruby, and C/C ++, and covers almost all popular development languages and methods. it would be better to add support for PHP. additional configuration is required for C/C ++ support.
Download the latest version of netbeans6.0 at http://dlc.sun.com.edgesuite.net/netbeans/6.0/final/select download next to all.
After downloading the package, select "Install all". (You can also use the package based on your own needs. However, the C/C ++ component should be selected. Otherwise, the following steps are unnecessary .)
We also need to download a C ++ compiler. We choose Cygwin (at least familiar with UNIX operations) or MinGW.
Download Cygwin
MinGW:
Ftp://gd.tuwien.ac.at/gnu/mingw/
Http://gd.tuwien.ac.at/gnu/mingw/
Cygwin configuration is as follows:
1. Run the setup.exe program. Accept the default settings until you go to the "Select Your Internet Connection" page. Select the option that best suits you on this page. Click "Next ".
2. on the "Choose A Download Site" Page, select A Site that is convenient for you to Download. Click "Next ".
3. On the "Select Packages" Page, Select the package to download. Click "+" next to "Devel" to expand the development tool category. You may need to adjust the window size so that you can see more content at a time.
Click the "Skip" tab next to the package to select each package to download. You must select at least
Gcc-core: C compiler,
Gcc-G ++: C ++ compiler,
GDB: the GNU Debugger
Make: the GNU version of The 'make' utility.
Then install.
Now add the compiler directory to your path variable:
Add the paths of cygwin-directory \ USR \ bin and cygwin-directory \ bin to the PATH variable, and click OK ". By default, cygwin-directory is c: \ cygwin.
Then start netbeans. You can select Tools> Options> C/C ++ to set the options box automatically.
If the above runs normally, you can use netbeans to develop your C/C ++ application.