MingW(64) build fails with undefined references
stefandd opened this issue · 1 comments
stefandd commented
The MinGW library libsetupapi.a does not get linked properly when building with MingW/MSYS, leading to an undefined reference error at link time ( undefined reference to `__imp_SetupDiGetClassDevsA' and others).
Proposed small fix to CMakeList.txt is attached.