mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 __imp__SetupDiGetClassDevsW@16,该符号在函数 "void * __cdecl G
出现此问题时,头文件中加入下列代码
#include <SetupAPI.h>
#pragma comment(lib,"SetupAPI.lib")
mainwindow.obj:-1: error: LNK2019: 无法解析的外部符号 __imp__SetupDiGetClassDevsW@16,该符号在函数 "void * __cdecl G
出现此问题时,头文件中加入下列代码
#include <SetupAPI.h>
#pragma comment(lib,"SetupAPI.lib")