程序不会在NetBeans中运行,而是在命令行上运行! [英] Program won't run in NetBeans, but runs on the command line!

查看:1463
本文介绍了程序不会在NetBeans中运行,而是在命令行上运行!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我现在开始一个C ++类,我已经配置NetBeans(我通常用于PHP和Java开发)使用Cygwin编译器/调试器。这是我第一次使用C ++的体验,我遇到了一个小问题。当我尝试在NetBeans(F11或绿色三角形)中运行程序时,项目构建正确,没有错误或警告,但不会运行。我收到以下错误:


应用程序失败,退出代码为-1073741515(0xc0000135)。
这可能表示在PATH中找不到所需的.dll。
请尝试从命令shell(cmd.exe)启动以下命令。
这可能会提供一些额外的信息。



C:/ Users / Eric / Documents / NetBeansProjects / CS217ASeminar1 / dist / Debug / Cygwin-Windows / cs217aseminar1



RUN FAILED(退出值-1,073,741,515,总时间:58ms)


当我试图在命令shell中执行给定的文件,我没有错误,程序运行成功。我对这个错误的研究通常表明C:\cygwin和/或C:\cygwin\bin(我的安装目录)不在路径中。但是,我已经验证我已将它们添加到路径中,并且可以从这两个文件夹中运行任意程序。



任何人都有任何建议如何解决这个错误,或任何经验与类似的东西?显然,这不是一个巨大的交易,但我想能够使用NetBeans的内置功能。<​​/ p>

提前感谢。



编辑:在修改了我项目的设置以尝试修复它后,似乎该错误是由NetBeans中的分析器造成的。因为它只适用于Linux / Solaris,这是一个Windows 7框,禁用导致功能没有损失,并解决了问题。感谢所有尝试帮助的人。

解决方案

在修改了我的项目设置后,似乎该错误是由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.

解决方案

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.

这篇关于程序不会在NetBeans中运行,而是在命令行上运行!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆