如果运行时未获取 1073741515,则无法创建 QwtPlot
我正在使用 msvc2008 编译器在 Qt 4.7.4 中开发一个项目,并且我尝试使用 Qwt 在我的项目中绘制一些图表。
我尝试添加一个非常简单的图表,当这不起作用时,我删除了所有代码,直到遇到第一个错误,这是第一行:
QwtPlot *leftGraph;
leftGraph = new QwtPlot(tr("A Graph"), 0);
代码构建良好,但是当我尝试运行时它,我收到错误:“退出代码为-1073741515”
我尝试在调试和发布模式下运行代码,但没有任何变化。
有什么想法吗? 非常感谢。
I'm working on a project in Qt 4.7.4 using the msvc2008 compiler, and I'm trying to use Qwt to plot some graphs in my project.
I tried to add a very simple graph, and when that didn't work, I stripped out all of the code until I got to the first error, which was the very first line:
QwtPlot *leftGraph;
leftGraph = new QwtPlot(tr("A Graph"), 0);
The code builds fine, but when I try to run it, I get the error: "exited with code -1073741515"
I've tried running the code in both debug and release mode, to no change.
Any ideas?
Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
退出代码-1073741515是十六进制的0xC0000135,这基本上意味着“找不到某些dll”。
如果您正常运行应用程序(即不在调试器下),您应该会看到一个对话框,指出未找到哪个 dll,我建议您先尝试一下。无论如何,您的情况的典型原因是运行 exe 时找不到 Qt dll。最简单的解决方案是检查 PATH 环境变量,确保 Qt bin 目录位于其中。
Exit code -1073741515 is 0xC0000135 in hex, which basically means "some dll not found".
If your run the app normally (ie not under the debugger), you should get a dialog box saying which dll was not found, I suggest you try that first. Anyway the typical cause in your case would be that the Qt dlls are not found when you run your exe. Simplest solution is to check your PATH environment variable, make sure the Qt bin directory is in it.