Skip to content

Bug: MAP_FAILED identifier not found on Windows #719

Closed

Description

@anaslimem

Describe the bug

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

  1. Build usearch on Windows using MSVC (e.g., on GitHub Actions windows-latest runner)
  2. Try to compile with usearch as a dependency
  3. 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.

USearch version

2.24.0

Operating System

Windows (x86_64-pc-windows-msvc)

Hardware architecture

x86

Which interface are you using?

Other bindings

Contact Details

[email protected]

Are you open to being tagged as a contributor?

  • I am open to being mentioned in the project .git history as a contributor

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    bug
    on Feb 27, 2026
  2. added a commit that references this issue on Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions