Getting started with netbeans

Netbeans is a very powerful IDE. These pages are intended to get you started. The help-facility of netbeans is comprehensive and will give you further information.

The first step is to set the additional compiler flags which ensure that all warnings are produced and are treated as errors. For this, select Tools-> Options , and in the window which appears, the option C/C++ and the tab Project Options. Now enter in the text box marked Make Options the text "-Wall -Werror" (including the quotes). This window should now look like

To create a new project, open File-> New Project . Select "C/C+" as the category, and "C/C++ Application" as the Projects. After these steps you should get a screen that looks like
New Project layout
In the next step you will be asked for a name of the project. Choose whatever suits you. Make sure you select C as the language for the main file. The window should now look like

You can now start entering your source code. The program for the Hello-World-example looks like this:

To compile the program, select Run-> Build Main Project . All compiler errors are shown in a separate window at the bottom.

To run the program, open Run-> Run Main Project. A separate window will appear, which contains the input and output of the program. The debugger is started and used in the same way as for Java-programs.