首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >我的Netbeans DLL无法编译,除非我第一次打开项目(在C++中)

我的Netbeans DLL无法编译,除非我第一次打开项目(在C++中)
EN

Stack Overflow用户
提问于 2015-12-14 09:22:38
回答 1查看 62关注 0票数 0

我有一个C++动态链接库,我已经用过好几次了。我使用Netbeans和MinGW。

我不确定这是什么时候开始的,我对代码做了一些小的修改,然后就开始有问题了。基本上,我可以打开Netbeans,打开项目,执行Clean and Build,然后它就会通过,创建DLL。但是,如果我再次尝试这样做,它会通过清理,但构建失败。这是第二次Clean and Build失败时的输出。

代码语言:javascript
运行
复制
"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .clean-conf
make.exe[1]: Entering directory `absolute path here...'
rm -f -r build/Release
rm -f dist/Release/MinGW-Windows/myfile.dll
make.exe[1]: Leaving directory `absolute path here...'

CLEAN SUCCESSFUL (total time: 2s)
"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `absolute path here...'
"/C/msys/1.0/bin/make.exe"  -f nbproject/Makefile-Release.mk dist/Release/MinGW-Windows/myfile.dll
make.exe[2]: Entering directory `absolute path here...'
mkdir -p build/Release/MinGW-Windows
make.exe[2]: mkdir: Command not found
make.exe[2]: *** [build/Release/MinGW-Windows/Main.o] Error 127
make.exe[2]: Leaving directory `absolute path here...'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `absolute path here...'
make.exe": *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 2s)

随之而来的是,我的DLL在我的外部程序中一直没有错误地执行,现在将根本不会执行。我不禁认为这两个问题是相关的。如果我运行它更多次,我会得到一个不同的信息,这似乎高度unusual...it不能执行一个rm命令?

代码语言:javascript
运行
复制
"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .clean-conf

make.exe[1]: Entering directory `absolute path here...'
rm -f -r build/Release
make.exe[1]: rm: Command not found
make.exe[1]: Leaving directory `absolute path here...'
make.exe[1]: *** [.clean-conf] Error 127
make.exe": *** [.clean-impl] Error 2

CLEAN FAILED (exit value 2, total time: 1s)

如果你需要更多的信息,请让我知道,我在这里很迷茫,所以任何帮助都是非常感谢的。谢谢!

EN

回答 1

Stack Overflow用户

发布于 2015-12-14 19:14:50

rmmkdir通常是unix命令,必须添加到路径中才能在windows上运行。

尝试进入控制面板,搜索“环境”以打开环境面板,并编辑路径以添加rm.exe和mkdir.exe的目录(我猜是C:\msys\1.0\bin)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34258458

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档