#include <QtCore>#include <windows.h>#include <wtypes.h>#include <initguid.h>extern "C"{ #include "hidsdi.h" #include <setupapi.h> #include <dbt.h>}int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); GUID hidguid; HidD_GetHidGuid(&hidguid); .... return a.exec();}
...LIBS += hid.dll...
.../main.cpp:20: undefined reference to `_imp__HidD_GetHidGuid@4'