c++ - CPU Process time using GetProcessTimes and FileTimeToSystemTime do not work in 64 bit win -


I'm trying to measure CPU time, it works great on 32 wins, but on 64 bit, it says Error: LNK2019: Unsolved external symbol function referenced in __imp_GetProcessTimes "unsigned int __cdecl getWINTime (zero)" (? GetWIN32Time @@ YAIXZ)

< Code> FileTimeToSystemTime

  This error is for error LNK2019: Unsolved external symbol function referenced in __imp_FileTimeTySystemTime "unsigned int __cdecl getWINTime (zero)" (getWIN32Time @@ YAIXZ)  
< P> function is not important, there is no problem with it. Are these 64-bit architecture or what's called?

This is not the only issue as the 64-bit window is not properly linked to the library.
Is there a setting that I should set to properly link to?

Are you building settings for two environments, similar import libraries are listed. Both of those functions are in kernel32.dll.


Comments