You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: MAP_FAILED identifier not found on Windows #719
Windows builds fail with MAP_FAILED identifier not found error when compiling with MSVC on Windows. The usearch library uses POSIX memory mapping APIs (MAP_FAILED from <sys/mman.h>) which don't exist on Windows.
Steps to reproduce
Build usearch on Windows using MSVC (e.g., on GitHub Actions windows-latest runner)
Try to compile with usearch as a dependency
Build fails with error: error C3861: 'MAP_FAILED': identifier not found in include/usearch/index_plugins.hpp:962
Expected behavior
The library should compile successfully on Windows by using Windows-compatible API or providing proper conditional compilation for MAP_FAILED.
Activity
Define MAP_FAILED on Windows