MathGeoLib
MathGeoLib copied to clipboard
Building using msys2 clang64 environment
I suspect that set(MATH_WINVER 0x0501) in CommonOptions.cmake causes this; using 0x0600 works.
C:/git/tksuoran/alt/erhe/build/ninja/_deps/mathgeolib-src/src/Time/Clock.cpp:69:26: error: use of undeclared identifier 'GetTickCount64'; did you mean 'GetTickCount'?
69 | appStartTime = (tick_t)GetTickCount64();
| ^~~~~~~~~~~~~~
| GetTickCount
C:/msys64/clang64/include/sysinfoapi.h:62:27: note: 'GetTickCount' declared here
62 | WINBASEAPI DWORD WINAPI GetTickCount (VOID);
| ^
C:/git/tksuoran/alt/erhe/build/ninja/_deps/mathgeolib-src/src/Time/Clock.cpp:185:24: error: use of undeclared identifier 'GetTickCount64'; did you mean 'GetTickCount'?
185 | return (unsigned long)GetTickCount64();
| ^~~~~~~~~~~~~~
| GetTickCount
C:/msys64/clang64/include/sysinfoapi.h:62:27: note: 'GetTickCount' declared here
62 | WINBASEAPI DWORD WINAPI GetTickCount (VOID);
| ^
2 errors generated.