Qt and LNK1104 cannot open file

I am trying to follow the hello world tutorial with Qt 5.0.2 for Windows 64-bit (VS 2012, 500 MB) (Info). However, when I click Run Project, I have LNK1104: I cannot open the file debug / Hello.exe. However, I see that this file is being created in the project folder "F: \ QT \ Hello \ build-Hello-Desktop_Qt_5_0_2_MSVC2012_64bit-Debug". Thank you in advance

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 
+4
source share
3 answers

Most likely, the reason for the problem is: the .exe file of your program is still running. Consult a task manager. And this process is from the task manager and try to build it again. It will definitely work.

+9
source

I had the same problem to fix this. I went to the project right above the launch (play button) clicked on the assembly and switched to debugging. I don't know why, but it worked for me. Hope this helps

+1
source

This may be due to file permission or communication problems.

In addition, the Microsoft Development Network has an extensive list of possible causes (and solutions) for your problem: http://msdn.microsoft.com/en-us/library/ts7eyw4s%28v=vs.110%29.aspx

0
source

Source: https://habr.com/ru/post/1483956/


All Articles