How can I use winapi in Qt
I want include windows.h header. But I can't build my project. It report "undefined reference to _imp__GetDeviceCaps@8". I cannot use any winapi.
I use Qt5.8.0-mingw. How to fix It.
u must also link to the dll that gives the function.
the GetDeviceCaps lives in
so you must add to your .pro file
LIBS += -lgdi32