You got __imp_SetupDiGetClassDevsA undefined reference, because you missing link to Windows’ SetupAPI library. Pass -lSetupAPI to your linker.
You can use pastebin if you still unable to upload it here.
You got __imp_SetupDiGetClassDevsA undefined reference, because you missing link to Windows’ SetupAPI library. Pass -lSetupAPI to your linker.
You can use pastebin if you still unable to upload it here.