Unresolved external symbols - Qt creator

本秂侑毒 提交于 2019-11-28 08:08:28

It looks like the Makefile was not regenerated when you edited the .pro file. Run qmake and try again. You could also check if the deck.cpp is compiled or not; is there a deck.o in the build directory ?

yes, some time Makefile file is not updated while you change .pro file. So you have to run qmake.

Follow this steps:

  • Right click on project Clean / Build menu -> cleanAll
  • Right click on project Run qmake / Build menu -> runQmake
  • Right click on project Build / Build menu -> build

Pro Advice:

I don't know but sometime Qt is not updating Makefile. so i recomanded to all whenever you add/removing any resource in project or if any changes occur in your .pro file, just Run qmake and build your project(Running qmake do manually to update the path of project, which help to find the mainwindow.obj file).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!