• 全部
  • 问答

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

如上所示的问题应该如何解决。谢谢
...全文
2817 点赞 收藏 2
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
彩阳 2020-08-05
请结贴,好拿分。
回复
狰鸩的快乐 2020-08-04
已解决,系未导入静态库,导入后不再报错,问题解决
回复
相关推荐
发帖
Qt
创建于2009-11-04

1.3w+

社区成员

Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
申请成为版主
帖子事件
创建了帖子
2020-08-03 02:34
社区公告
暂无公告