项目在Netbeans中编译,但不使用MAKE
Project Compiles in Netbeans but not using MAKE
我有一个项目,在netbeans中使用MinGW/MSYS编译得很好,但当调用make if失败时。值得注意的是,前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:mingwbinar.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
g++.exe -c -g - inc -MMD -MP -MF build/Debug/MinGW-Windows/src/Version.o。d -o build/Debug/MinGW-Windows/src/Versiono src/Version.cpp
g++.exe:没有输入文件
从哪里启动make all命令?好像g++找不到find "src/Version.cpp".
相关文章:
- VS Code "command":"make"与终端窗口中的命令行"make"不同
- 使用 make 编译 MPI,几个命名空间错误,例如"错误:未知类型名称'使用'?
- make 命令如何避免重新编译未更改的源文件?
- MAKE:找不到包含的用户定义的头文件?
- Netbeans 10:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
- Eclipse/Netbeans 中的处理模式行
- 'make check' GLIBC 运行时的链接问题
- Qt5 [make -snap] 无法正确编译:进程"/usr/bin/snap"代码 1 退出
- mingw32-make 使用"MinGW Makefiles"生成器跟踪 CMAKE 无法将可执行文件链接到对象库
- make 命令创建 .file,但不创建应用程序文件
- 尝试构建 xerces c++ 解析器。Netbeans 和命令行构建错误未定义对"xercesc_3_2..."的引用
- 如何摆脱导入的 make 项目中的 Eclipse 索引器"Type std::... could not be resolved"错误
- 如何为C 设置跨平台(Win7中的NetBeans和Make Linux)
- NetBeans使用的默认make工具是什么
- Netbeans 中的"make[2]: g++: Command not found"
- Netbeans - 找不到 make.exe 、 "cygdrive/" 已预先添加到 PATH 中
- NetBeans在make文件中设置多个.o库输出
- NetBeans c++寻找make实用程序在错误的位置
- Netbeans 远程C++开发"No rule to make target"错误
- 项目在Netbeans中编译,但不使用MAKE