Before you can write  and cross compiling program for MIPS processor. The cross-compiler tool chain must be added to the NetBeans. Follows below steps to do it.

 

After Netbeans IDE started, click Tools->Options->C/C++

 

Click Add, give the name for this compiler, here is mips-2015.11, fills all required on the red box

 

Then, click Code Assistance Tab  to fill the include path for C/C++ compiler. Finally click OK you're done.