Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel32.dll Win7 32bit x86 GetSystemTimePreciseAsFileTime could not be located in... #5766

Closed
MortezaRahmaniJRP opened this issue Jul 1, 2020 · 6 comments

Comments

@MortezaRahmaniJRP
Copy link

The procedure entry point GetSystemTimePreciseAsFileTime could not be located in the dynamic link library Kernel32.dll

@tnodir
Copy link

tnodir commented Jul 1, 2020

MSDN: Minimum supported client: Windows 8

@daurnimator
Copy link
Contributor

Windows 7 is no longer supported; as seen in the Support Table the minimum windows version is 8.1.

@Prince213
Copy link
Contributor

Prince213 commented Jul 8, 2021

Try this:

#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0603
#endif

Replace 0x0603 with 0x0601, then rebuild Zig.
In addition, check out https://reviews.llvm.org/D104987, which ensures that we always use the highest precision available.

@pancelor
Copy link
Contributor

pancelor commented Dec 4, 2021

The support table link seems to be broken; I believe this is what it's referring to:
https://ziglang.org/download/0.8.1/release-notes.html#Support-Table

After some cursory investigation, 0.5.0 seems to be the last major version that supports windows 7:
https://ziglang.org/download/0.5.0/release-notes.html#Support-Table

@telecran-telecrit
Copy link

Try this:

#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0603
#endif

Replace 0x0603 with 0x0601, then rebuild Zig.
In addition, check out https://reviews.llvm.org/D104987, which ensures that we always use the highest precision available.

I get "GetSystemTimePreciseAsFileTime not found" too, but for pure NodeJS. There is other way, when recompilling is long or not possible... VxKex (windows 7 extended kernel to 8+).

P. S.: Only for advanced users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants