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