这个最简单的程序在发布模式下编译时出错,但在调试模式下编译正常:
#include <QApplication>
int main(int argc, char* argv[])
{
QApplication app(argc,argv);
return app.exec();
}
Run Code Online (Sandbox Code Playgroud)
错误(从 qt 的控制台输出)
*开始 C:\excercizes\QT_projects\Line_Counter-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release\release\Line_Counter.exe...程序意外完成。C:\excercizes\QT_projects\Line_Counter-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release\release\Line_Counter.exe 退出,代码为 -1073741511*
有人有过这种经历吗?