我正在尝试使用Qt 5.0.2 for Windows 64位(VS 2012,500 MB)(Info)完成“hello world”教程。 但是,当我按下运行项目我有一个LNK1104:无法打开文件'debug/Hello.exe'错误。但是我发现这个文件是在项目文件夹“F:\ QT \ Hello \ build-Hello-Desktop_Qt_5_0_2_MSVC2012_64bit-Debug”下创建的。谢谢你在前进Qt和LNK1104无法打开文件
Main.cpp的
#include <QApplication>
#include <QPushButton>
int main(int argc, char **argv)
{
QApplication app (argc, argv);
QPushButton button;
button.setText("Hello world !");
button.setToolTip("heheheheheheheh");
button.show();
return app.exec();
}
Hello.pro
TEMPLATE = app
TARGET = Hello
QT = core gui
QT += widgets
SOURCES += \
main.cpp
Hello.exe是否在后台运行?看看你的任务管理器中的进程列表。 –
不是,电脑重启后也发生这种情况。我查看进程列表,但没有任何内容。值得注意的是,如果我第一次创建新项目(hello),它会运行正常,但如果我修改它,它会抛出上述错误。 – Jim