Hi ,
I am porting a code from unix to windows.
Using windows 7 -64 bit.
previously in unix code we were using clock_gettime.
To make it work on windows i did the below changes.
But on executing the code i am getting error:
-----------------------------
Tool.cpp
Tool.cpp(163) : error C2065: 'FILETIME' : undeclared identifier
Tool.cpp(163) : error C2059: syntax error : ')'
Tool.cpp(163) : error C3861: 'GetSystemTimeAsFileTime': identifier not found
Tool.cpp(173) : error C2039: 'LARGE_INTEGER' : is not a member of 'winLib'
Tool.cpp(173) : error C2065: 'LARGE_INTEGER' : undeclared identifier
Tool.cpp(173) : error C2059: syntax error : ')'
Tool.cpp(173) : error C3861: 'QueryPerformanceFrequency': identifier not found
Tool.cpp(176) : error C2039: 'LARGE_INTEGER' : is not a member of 'winLib'
Tool.cpp(176) : error C2065: 'LARGE_INTEGER' : undeclared identifier
Tool.cpp(176) : error C2059: syntax error : ')'
Tool.cpp(176) : error C3861: 'QueryPerformanceCounter': identifier not found
Tool.cpp(179) : error C2039: 'LARGE_INTEGER' : is not a member of 'winLib'
Tool.cpp(179) : error C2065: 'LARGE_INTEGER' : undeclared identifier
Tool.cpp(179) : error C2059: syntax error : ')'
Tool.cpp(179) : error C3861: 'QueryPerformanceCounter': identifier not found
C:\Program Files (x86)\Windows Kits\8.0\include\um\minwinbase.h(48) : error C2872: 'BOOL' : ambiguous symbol
could be 'C:\Program Files (x86)\Windows Kits\8.0\include\shared\minwindef.h(157) : int BOOL'
or 'D:/minor/windowsTool/source/include/pin/gen\types.TLH(47) : LEVEL_BASE::BOOL'