无法解析的外部符号

来源:互联网 发布:深度卸载mac上的软件 编辑:程序博客网 时间:2024/06/01 07:25

使用SetWindowLong时发生错误:
mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 __imp__SetWindowLongW@12,该符号在函数 “public: void __thiscall MainWindow::showFft(void)” (?showFft@MainWindow@@QAEXXZ) 中被引用

头文件添加:
#pragma comment(lib, "User32.lib")

0 0