mardi 23 janvier 2018

Unable to compile single C++ file in Netbeans, but able to build full project

I am having issue with single file compilation in Netbeans when I right click and try to compile a file. I had other problems as given in this post and fixed all other issues. Build works fine, but only compilation issue.

Compilation Error: cd 'C:\Study Materials\C++\CPP Programs MP Compiled\Projects\collegeProject\collegeProject' C:\MinGW\MSYS 1.0\bin\make.exe -f nbproject/Makefile-Debug.mk build/Debug/MinGW-Windows/FileHandling.o Cannot run program "C:\MinGW\MSYS" (in directory "C:\Study Materials\C++\CPP Programs MP Compiled\Projects\collegeProject\collegeProject"): CreateProcess error=2, The system cannot find the file specified

Build Log (only Part):

cd 'C:\Study Materials\C++\CPP Programs MP Compiled\Projects\collegeProject\collegeProject' C:\MinGW\MSYS 1.0\bin\make.exe -f Makefile CONF=Debug "/C/MinGW/MSYS 1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make.exe1: Entering directory /c/Study Materials/C++/CPP Programs MP Compiled/Projects/collegeProject/collegeProject' "/C/MinGW/MSYS 1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/collegeproject.exe make.exe[2]: Entering directory/c/Study Materials/C++/CPP Programs MP Compiled/Projects/collegeProject/collegeProject' mkdir -p build/Debug/MinGW-Windows rm -f "build/Debug/MinGW-Windows/FileHandling.o.d" g++ -c -g -std=c++11 -MMD -MP -MF "build/Debug/MinGW-Windows/FileHandling.o.d" -o build/Debug/MinGW-Windows/FileHandling.o FileHandling.cpp mkdir -p build/Debug/MinGW-Windows rm -f "build/Debug/MinGW-Windows/admin.o.d" . . .

mkdir -p dist/Debug/MinGW-Windows g++ -o dist/Debug/MinGW-Windows/collegeproject build/Debug/MinGW-Windows/FileHandling.o build/Debug/MinGW-Windows/admin.o build/Debug/MinGW-Windows/login.o build/Debug/MinGW-Windows/main.o build/Debug/MinGW-Windows/person.o build/Debug/MinGW-Windows/staff.o build/Debug/MinGW-Windows/student.o build/Debug/MinGW-Windows/subjects.o build/Debug/MinGW-Windows/utilities.o make.exe[2]: Leaving directory /c/Study Materials/C++/CPP Programs MP Compiled/Projects/collegeProject/collegeProject' make.exe[1]: Leaving directory/c/Study Materials/C++/CPP Programs MP Compiled/Projects/collegeProject/collegeProject'

BUILD SUCCESSFUL (total time: 8s)

Aucun commentaire:

Enregistrer un commentaire