2020-08-24 undefined reference to `EnumProcessModules@16' 解决

使用函数

EnumProcessModules(hProcess,hmods,sizeof(hmods),(LPDWORD) &byteNeeded );

已经

#include "psapi.h"

依然出错;

解决:

devc++ 

ADD lib libpsapi.a  OK!!!!!!!

"../../../../Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32/libpsapi.a"

你可能感兴趣的:(2020-08-24 undefined reference to `EnumProcessModules@16' 解决)