🌼🌻

[C++/Qt] File not found: mainwindow.obj 해결법

치즈불닭 2018. 11. 22. 03:29

Solution

  1. Right click on project > Clean

  2. Right click on project > Run qmake

  3. Right click on project > Build

  4. Run - worked first time

Why it works

The reason this worked is because Run qmake updates your Makefile. For some reason qt is not automatically updating paths when you make changes to your project such as adding or removing files. Running qmake forces qt to update the paths for your project which enables it to find the mainwindow.obj file. You probably could just run qmake and your problem would be solved.

출처 : https://stackoverflow.com/questions/15864177/file-not-found-mainwindow-obj