It is my understanding that NetBeans is not compatible with the version of make.exe provided by MinGW. Generally, you should install Msys after installing MinGW and point your netbeans IDE at the Msys Make (all other components from mingw should work)

Other IDE's don't have this problem, so Eclipse, Code:Blocks, Dev-CPP, and similar wouldn't have this problem.

Personally, I prefer NetBeans because of the superior code completion, auto-formatting, and descriptive error messages.

I used cygwin and problem is solved .
But now when I want to compile the project, my project is compiled properly with no errors and the program is executed but the iostream or std or string words in editor is underlined .
Why ?
It say that this headers or identifiers is not found .