程序不会在 NetBeans 中运行,而是在命令行上运行!
因此,我现在正在启动一个 C++ 类,并且已将 NetBeans(我通常用于 PHP 和 Java 开发)配置为使用 Cygwin 编译器/调试器。这是我第一次使用 C++ 进行结构化体验,但我遇到了一个小问题。当我尝试在 NetBeans(F11 或绿色三角形)中运行程序时,项目会正确构建,没有错误或警告,但随后无法运行。我收到以下错误:
应用程序失败,退出代码为 -1073741515 (0xc0000135)。 这可能表明在 PATH 中未找到所需的 .dll。 请尝试从命令外壳 (cmd.exe) 启动以下命令。 这可能会提供一些额外的信息。
C:/Users/Eric/Documents/NetBeansProjects/CS217ASeminar1/dist/Debug/Cygwin-Windows/cs217aseminar1
运行失败(退出值-1,073,741,515,总时间:58ms)
当我尝试在命令 shell 中执行给定文件时,我得到没有错误,程序运行成功。我对此错误所做的研究通常表明 C:\cygwin 和/或 C:\cygwin\bin (我的安装目录)不在路径中。但是,我已经验证它们已添加到路径中,并且我可以从这两个文件夹运行任意程序。
有谁对如何解决此错误有任何建议,或者有类似的经验吗?显然,这不是什么大问题,但我希望能够使用 NetBeans 的内置功能。
提前致谢。
编辑:在对我的项目设置进行了一些修改并试图修复它之后,该错误似乎是由 NetBeans 中的探查器引起的。由于该功能仅适用于 Linux/Solaris,而这是 Windows 7 机器,因此禁用该功能不会导致功能损失并解决了问题。感谢所有试图提供帮助的人。
So, I'm starting a C++ class right now, and I've configured NetBeans (which I use normally for PHP and Java Development) to use the Cygwin compiler/debugger. This is my first structured experience with C++, and I'm running into a slight issue. When I attempt to run a program within NetBeans (F11 or the Green Triangle) the project builds correctly, no errors or warnings, but then won't run. I receive the following error:
The application failed with exit code -1073741515 (0xc0000135).
This could indicate that no required .dll was found in the PATH.
Please try to start the following command from the command shell (cmd.exe).
This may give some additional information.C:/Users/Eric/Documents/NetBeansProjects/CS217ASeminar1/dist/Debug/Cygwin-Windows/cs217aseminar1
RUN FAILED (exit value -1,073,741,515, total time: 58ms)
When I attempt to execute the given file within a command shell, I get no errors and the program runs successfully. The research I've done on this error usually indicates that C:\cygwin and/or C:\cygwin\bin (my install directories) aren't in the path. However, I've verified that I they've been added to the path, and I can run arbitrary programs from both of those folders.
Does anyone have any suggestions on how to resolve this error, or any experience with something similar? Obviously, it's not a huge deal, but I'd like to be able to use NetBeans's built in functionality.
Thanks in advance.
Edit: After tinkering a bit with the settings of my project in an attempt to fix it, it appears that the error was being caused by the Profiler in NetBeans. Since that only works on Linux/Solaris, and this is a Windows 7 box, disabling that caused no loss of functionality and solved the issue. Thanks for everyone who tried to help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在对我的项目设置进行了一些修改并尝试修复该问题后,该错误似乎是由 NetBeans 中的探查器引起的。由于该功能仅适用于 Linux/Solaris,而这是 Windows 7 机器,因此禁用该功能不会导致功能损失并解决了问题。感谢所有试图提供帮助的人。
After tinkering a bit with the settings of my project in an attempt to fix it, it appears that the error was being caused by the Profiler in NetBeans. Since that only works on Linux/Solaris, and this is a Windows 7 box, disabling that caused no loss of functionality and solved the issue. Thanks for everyone who tried to help.
右键单击项目将设置配置从调试更改为发布。这对我有用。
Right click on project change set configuration from debug to release. It worked for me.
可能是错误的,但听起来您的路径可能设置不正确...
Netbeans 文档
Might be wrong, but it sounds like your path might not be set correctly...
Netbeans docs