简体   繁体   English

Qt 5中的简单GUI应用程序崩溃

[英]Simple GUI application crashes in Qt 5

After I downloaded and installed Qt 5. I opened Qt creator 2.6.1 and created a new simple GUI application. 下载并安装Qt 5之后,我打开了Qt Creator 2.6.1,并创建了一个新的简单GUI应用程序。 But when I try to run it, I get the following error: 但是,当我尝试运行它时,出现以下错误:

C:\\Qt\\Qt5.0.0\\5.0.0\\msvc2010\\include\\QtCore\\qglobal.h:46: error: C1083: Cannot open include file: 'stddef.h': No such file or directory C:\\ Qt \\ Qt5.0.0 \\ 5.0.0 \\ msvc2010 \\ include \\ QtCore \\ qglobal.h:46:错误:C1083:无法打开包含文件:'stddef.h':没有这样的文件或目录

What is the problem and how can I solve it ? 有什么问题,我该如何解决?

You need to install the Windows platform SDK. 您需要安装Windows平台SDK。

By the way: you used the wrong term (I assume). 顺便说一句:您使用了错误的术语(我认为)。 You application didn't crash it refuses to compile. 您的应用程序没有崩溃,它拒绝编译。

Hope this may help (a similar issue discussed here): 希望这会有所帮助(此处讨论了类似的问题):

http://qt-project.org/forums/viewthread/10255 http://qt-project.org/forums/viewthread/10255

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM