#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton hello("Hello Qt!");
hello.resize(100,30);
hello.show();
return a.exec();
}
如上所示,最简单的hello qt程序,winxp下在eclipse中build好了之后run一切正常,显示一个带有“helloqt”的按钮窗口,但是在目录下面直接双击运行时出错,提示是:This application has failed to start because mingwm10.dll was not found. Re-installing the application may fix this problem.
这是为什么呢?
谢谢!!