Je ne peux tout simplement pas construire un projet C / C ++ dans NetBeans. La environment variable
est correctement définie.
Erreur :
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make.exe[1]: Entering directory `/c/Users/Rahul/Documents/NetBeansProjects/CppApplication_1' "/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/cppapplication_1.exe make.exe[2]: Entering directory `/c/Users/Rahul/Documents/NetBeansProjects/CppApplication_1' mkdir -p build/Debug/MinGW-Windows make.exe[2]: mkdir: Command not found make.exe[2]: *** [build/Debug/MinGW-Windows/main.o] Error 127 make.exe[2]: Leaving directory `/c/Users/Rahul/Documents/NetBeansProjects/CppApplication_1' make.exe[1]: *** [.build-conf] Error 2 make.exe[1]: Leaving directory `/c/Users/Rahul/Documents/NetBeansProjects/CppApplication_1' make.exe": *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 2s)
Code:
#include int main(void) { printf("hello"); return 0; }
NetBeans-1:
NetBeans-2:
Le problème est que le “make” de msys recherche le msys mkdir mais ne le trouve pas car vous n’exécutez pas dans un environnement msys.
Le moyen le plus sûr de résoudre ce problème consiste à lancer NetBeans à partir du shell msys.
Sinon, vous pouvez créer manuellement le répertoire car gcc / g ++ / … se trouve également sur le chemin en dehors d’un environnement msys.