Issue
I am currently using Netbeans 7.4, MinGw and had been having problems for my first compilation. It says, mkdir stops responding whenever I try to compile and then the following debug log appears.
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/d/NetBeans/Welcome_1'
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows
/welcome_1.exe
make.exe[2]: Entering directory `/d/NetBeans/Welcome_1'
mkdir -p build/Debug/MinGW-Windows
0 [main] mkdir 3296 open_stackdumpfile: Dumping stack trace to mkdir.exe.stackdump
make.exe[2]: *** [build/Debug/MinGW-Windows/welcome.o] Error 5
make.exe[2]: Leaving directory `/d/NetBeans/Welcome_1'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/d/NetBeans/Welcome_1'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 3s)
Below here is my compiler paths.
Please help.
Changed make command path to C:\msys\1.0\bin\make.exe and encounterd the following error.
"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/c/NetBeans/Welcome_2'
"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows
/welcome_2.exe
make.exe[2]: Entering directory `/c/NetBeans/Welcome_2'
mkdir -p build/Debug/MinGW-Windows
rm -f "build/Debug/MinGW-Windows/welcome.o.d"
g++ -c -g -MMD -MP -MF "build/Debug/MinGW-Windows/welcome.o.d" -o build/Debug/MinGW-
Windows/welcome.o welcome.cc
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44:0,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
from welcome.cc:31:
c:\mingw\include\wchar.h:37:20: fatal error: stddef.h: No such file or directory
#include <stddef.h>
^
compilation terminated.
make.exe[2]: *** [build/Debug/MinGW-Windows/welcome.o] Error 1
make.exe[2]: Leaving directory `/c/NetBeans/Welcome_2'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/c/NetBeans/Welcome_2'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 955ms)
Solution
I got it fixed by installing more MinGw packages. Must have missed some packs while downloading. I also tried rekeying my Path in environment variables.Thanks alot for helping!
Answered By - nubbear