【qt】error: LNK2019: 无法解析的外部符号 "public: void __thiscall xxx::xxx()

【问题描述】
qt程序编译时报“error: LNK2019: 无法解析的外部符号 "public: void __thiscall xxx::yyy()”。

【问题定位】
工程里未添加xxx.h头文件,只添加xxx类的.cpp文件。

【解决方案】
添加xxx.h头文件。

发布了206 篇原创文章 · 获赞 12 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_43248127/article/details/103704537
今日推荐