Dynamic and static link links to related content.
There is no library file that contains psapi.lib
This problem arises mainly in the "Link" link process. When the link, because there is no lib contains the link error will occur.
Solution: 1, directly in the "source," adding, #pragma comment (lib, "psapi")
I mean to tell the compiler to compiler at compile time, when he joined psapi's lib library to compile .lib library.
2, the external dependencies inside the IDE .lib content increases.