我用qt-sdk-win-opensource-2009.03.exe 装的开发环境。
用一段网上找的例子做实验
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Hello Qt!");
label->show();
return app.exec();
}
我把mingwm10.dll QtCore4.dll QtGui4.dll 都放到了release 文件夹下
1.在Qt Creator中点左下角Build按钮 能生成release版的 但点击Run运行出错
Starting D:\work_dir\Qt\hello_world\hello_world\release\hello_world.exe...
D:\work_dir\Qt\hello_world\hello_world\release\hello_world.exe exited with code -1073741511
2.我到release 文件夹下,双击运行 结果报错
无法定位程序输入点 ?insert@?$QVector@VQpointF@@@@QAEXHABVQPointF@@@Z于动态链接库QtCore4.dll上
我又把mingwm10.dll QtCored4.dll QtGuid4.dll放到debug目录下
在Qt Creator中点左下角Build按钮 生成debug版后 无论点击Run按钮还是到debug目录下双击运行都正常。
这是怎么回事?

[ 此帖被boro在2009-07-02 06:52重新编辑 ]