# Configure Netbeans IDE for C/C++ (Windows)

Linux can compile C/C++ with Netbeans out of the box, as long as you have the compiler installed (like gcc and g++).

Usually the following commands are enough:

sudo apt-get install build-essential sudo apt-get install valgrind

In Windows you have to do this manually:

1. From https://sourceforge.net/projects/mingw/:
2. Install it to the suggested (default) directory. If you want to use a custom directory, make sure the selected path does not contain spaces or other special characters (like greek letters etc)
3. From the Mingw Installation manager, click and install at least the following packages:
1. mingw-developer-toolkit
2. mingw32-base
3. msys-base
4. mingw32-gcc-g++
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\MinGW\bin;C:\MinGW\MSYS\1.0\bin