On Linux, you need to install gcc and g++ . In windows you can use cygwin . Download and install by selecting the appropriate options.

In the search box, find gcc , gdb and make . Mark Install for all three in the Devel Development Tools category.
Then go to netbeans, Tools -> Options -> C / C ++
Click Restore Defaults.
source share