Hello,
I tried to link an application, using PDH Api calls. All are working flawlessly (->linking definately correct) except "PdhAddEnglishCounter"
getting undefined reference with mingw32!
Note - this does not occur with 64bit tdm compiler; couldnt test yet with mingw64.
Please examine.
Also note: There is a small bug in pdh.h:
PDH_STATUS PdhValidatePathExA(
PDH_HLOG hDataSource,
LPCSTR szFullPathBuffer
);
PDH_STATUS PdhValidatePathExA(
PDH_HLOG hDataSource,
LPCWSTR szFullPathBuffer
);
should be
PDH_STATUS PdhValidatePathExA(
PDH_HLOG hDataSource,
LPCSTR szFullPathBuffer
);
PDH_STATUS PdhValidatePathExW(
PDH_HLOG hDataSource,
LPCWSTR szFullPathBuffer
);
regards
e.
I forgot to mention: nm.exe -g DOES see PdhAddEnglishCounterA and PdhAddEnglishCounterW (however, PdhAddEnglishCounter resolves to PdhAddEnglishCounterA in my case just fyi)