Qt undefined reference to 问题

狰鸩的快乐 2020-08-03 02:34:52
debug/ae_widget.o: In function `ZN9AE_widget16ChangeDevelopPinEi':
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:11: undefined reference to `_imp___ZN19AuthorizationClientC1Ev'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:12: undefined reference to `_imp___ZN16AbsAuthorization4InitEv'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:18: undefined reference to `_imp__developerPIN'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:18: undefined reference to `_imp__developerPIN_old'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:18: undefined reference to `_imp___ZN16AbsAuthorization16ChangeDevelopPinEPhS0_'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:19: undefined reference to `_imp__userPIN'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:19: undefined reference to `_imp__userPIN_old'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:19: undefined reference to `_imp___ZN16AbsAuthorization13ChangeUserPinEPhS0_'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:22: undefined reference to `_imp__developerPIN_old'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:22: undefined reference to `_imp__developerPIN'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:22: undefined reference to `_imp___ZN16AbsAuthorization16ChangeDevelopPinEPhS0_'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:23: undefined reference to `_imp__userPIN_old'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:23: undefined reference to `_imp__userPIN'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:23: undefined reference to `_imp___ZN16AbsAuthorization13ChangeUserPinEPhS0_'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:31: undefined reference to `_imp___ZN16AbsAuthorization5CloseEv'
debug/ae_widget.o: In function `ZN9AE_widget21on_pushButton_clickedEv':
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:89: undefined reference to `_imp___ZN19AuthorizationClientC1Ev'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:90: undefined reference to `_imp___ZN16AbsAuthorization4InitEv'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:104: undefined reference to `_imp__userPIN'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:104: undefined reference to `_imp___ZN19AuthorizationClient11IsAuthorizeEPh'
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/ae_widget.cpp:112: undefined reference to `_imp___ZN16AbsAuthorization5CloseEv'
debug/ae_widget.o: In function `ZN19AuthorizationClientD1Ev':
F:\work\20.07.05_AuthorizedEncryption\build-AuthorizedEncryption-Desktop_Qt_5_9_0_MinGW_32bit-Debug/../AuthorizedEncryption/authorizationclient.h:6: undefined reference to `_imp___ZN16AbsAuthorizationD2Ev'
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [debug\AuthorizedEncryption.exe] Error 1
mingw32-make: *** [debug] Error 2

如上所示的问题应该如何解决。谢谢
...全文
3233 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
彩阳 2020-08-05
  • 打赏
  • 举报
回复
请结贴,好拿分。
狰鸩的快乐 2020-08-04
  • 打赏
  • 举报
回复
已解决,系未导入静态库,导入后不再报错,问题解决

16,816

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧