Hot to add a library to .pro with Template = lib?
Unsolved
General and Desktop
-
I was using the
GetProcessMemoryInfo
function from the <psapi.h> header and included aLIBS += -lpsapi
in the .pro file of the project, this project have aTEMPLATE = app
. I noticed that I will have to use theGetProcessMemoryInfo
in another file that is part of a project that its .pro have aTEMPLATE = lib
. I Tryed addingLIBS += -lpsapi
like in the other but it didn't work, it gives:
error: undefined reference to `GetProcessMemoryInfo@12'