【发布时间】:2014-03-14 15:10:11
【问题描述】:
我有一个使用 MinGW/MSYS 在 netbeans 中编译良好的项目,但是在调用 make 时如果失败。值得注意的是前 7 行是相同的。但是,NetBeans 调用 make 会成功,而从命令提示符调用 make 会失败。有什么想法吗?
Netbeans 输出:
""make.exe"" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/d/Source/Project/Project.System'
"make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/libproject.system.a
make.exe[2]: Entering directory `/d/Source/Project/Project.System'
mkdir -p build/Debug/MinGW-Windows/src
rm -f build/Debug/MinGW-Windows/src/Version.o.d
g++.exe -c -g -Iinc -MMD -MP -MF build/Debug/MinGW-Windows/src/Version.o.d -o build/Debug/MinGW-Windows/src/Version.o src/Version.cpp
mkdir -p build/Debug/MinGW-Windows/src
rm -f build/Debug/MinGW-Windows/src/Process.o.d
g++.exe -c -g -Iinc -MMD -MP -MF build/Debug/MinGW-Windows/src/Process.o.d -o build/Debug/MinGW-Windows/src/Process.o src/Process.cpp
mkdir -p build/Debug/MinGW-Windows/src
rm -f build/Debug/MinGW-Windows/src/Environment.o.d
g++.exe -c -g -Iinc -MMD -MP -MF build/Debug/MinGW-Windows/src/Environment.o.d -o build/Debug/MinGW-Windows/src/Environment.o src/Environment.cpp
c:\mingw\bin\ar.exe: creating dist/Debug/MinGW-Windows/libProject.system.a
mkdir -p dist/Debug/MinGW-Windows
rm -f dist/Debug/MinGW-Windows/libProject.system.a
ar -rv dist/Debug/MinGW-Windows/libProject.system.a build/Debug/MinGW-Windows/src/Version.o build/Debug/MinGW-Windows/src/Process.o build/Debug/MinGW-Windows/src/Environment.o
a - build/Debug/MinGW-Windows/src/Version.o
a - build/Debug/MinGW-Windows/src/Process.o
a - build/Debug/MinGW-Windows/src/Environment.o
ranlib dist/Debug/MinGW-Windows/libProject.system.a
make.exe[2]: Leaving directory `/d/Source/Project/Project.System'
make.exe[1]: Leaving directory `/d/Source/Project/Project.System'
全部制作输出:
""make.exe"" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/d/Source/Project/Project.System'
"make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/libproject.system.a
make.exe[2]: Entering directory `/d/Source/Project/Project.System'
mkdir -p build/Debug/MinGW-Windows/src
rm -f build/Debug/MinGW-Windows/src/Version.o.d
g++.exe -c -g -Iinc -MMD -MP -MF build/Debug/MinGW-Windows/src/Version.o.d -o build/Debug/MinGW-Windows/src/Version.o src/Version.cpp
g++.exe: no input files
make.exe[2]: *** [build/Debug/MinGW-Windows/src/Version.o] Error 1
make.exe[2]: Leaving directory `/d/Source/Project/Project.System'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/d/Source/Project/Project.System'
"make.exe": *** [.build-impl] Error 2
【问题讨论】:
-
netbeans使用make编译,所以....你用的好吗?
-
这是我困惑的主要原因。
标签: c++ netbeans makefile mingw