Skip to content

Conflict with bcrypt.h on Windows #10

Description

@ramakarl

Ran bcrypt cmake for VS 2019. I am getting build errors on Windows such as:
error C2143: syntax error : missing ';' before '*'

I've determined the cause is that VisualStudio sees the #include "bcrypt.h" inside bcrypt.cpp and links in a name-conflicted bcrypt.h from the Windows SDK. It does not matter that this bcrypt.h wrapper uses the namespace bcyrpt, because the file itself is conflicting with an internal Windows file. For now my workaround is to rename bcrypt.h and bcrypt.cpp.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions