zstd icon indicating copy to clipboard operation
zstd copied to clipboard

InitializeConditionVariable could not located in the dynamic library Kernel32.dll

Open s866854 opened this issue 9 years ago • 6 comments

zstd-v1.3.2-win32 with Windows XP

  • https://stackoverflow.com/questions/2847960/procedure-entry-point-initializeconditionvariable-could-not-be-located-in-kernel
  • https://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html

s866854 avatar Nov 24 '17 22:11 s866854

Sorry, win32 on Windows xp is no longer supported.

Moreover I don't have anything around that looks like it and could be used for tests. And it seems making the code work for this environment requires more than tiny adaptations, so this is a pretty bad mix : low outcome, non-negligible complexity, and no way to test it.

Note that I'm not against supporting this target, it's just that the work necessary to make it work will have to come from another source (maybe you?). Either a dedicated fork, or someone willing to push the associated patch upstream.

Cyan4973 avatar Nov 25 '17 00:11 Cyan4973

I can test compression/decompression manually when patch comes.

XP is the latest Windows system with lowest (under 100-300mb) memory usage, but it can't be used as primary system

s866854 avatar Nov 25 '17 18:11 s866854

If you still need it, you can check out my forked version. @s866854 Zstandard (zstd) - Windows XP Compatibility Fork

jimmyleocn avatar Mar 30 '25 15:03 jimmyleocn

and no way to test it.

I have slax module with wine that doesn't have it. That could be your environment for testing, if that's of any help.

tansy avatar Aug 11 '25 15:08 tansy

Why not use std::condition_variable?

stati64 avatar Aug 11 '25 22:08 stati64

Why not use std::condition_variable?

Why is zstd written in C, not C++, I wonder...

tansy avatar Aug 12 '25 07:08 tansy