我在链接测试项目时遇到问题;这是错误:
DataGUI.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl GuiUtilities::TreeModel::TreeModel(class QObject *)" (??0TreeModel@GuiUtilities@@QEAA@PEAVQObject@@@Z) referenced in function "public: __cdecl GuiUtilities::DataGUI::DataGUI(class QWidget *)" (??0DataGUI@GuiUtilities@@QEAA@PEAVQWidget@@@Z)
File not found: DataGUI.obj
The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project DataGUI (kit: Desktop Qt 5.8.0 MSVC2015_64bit)
The kit Desktop Qt 5.8.0 MSVC2015_64bit has configuration issues which might be the root cause for this problem.
对象文件“DataGUI.obj”确实存在。
我正在做一个源外构建,所以:
./Project/sources
./Project/*.pro
./Build/build-Project-.../Debug/DataGUI.obj
使用完全相同的配置,我已经成功构建了其他 Qt 项目。