E534 Fix MutexLock compilation in main_portable.cc for IDA Pro 9.1 on Windows by adeliktas · Pull Request #87 · google/bindiff · GitHub
[go: up one dir, main page]

Skip to content

Fix MutexLock compilation in main_portable.cc for IDA Pro 9.1 on Windows#87

Open
adeliktas wants to merge 1 commit intogoogle:mainfrom
adeliktas:main
Open

Fix MutexLock compilation in main_portable.cc for IDA Pro 9.1 on Windows#87
adeliktas wants to merge 1 commit intogoogle:mainfrom
adeliktas:main

Conversation

@adeliktas
Copy link

Description:
When building BinDiff from source on Windows for IDA Pro 9.1, compilation fails in main_portable.cc at line 216 with error C2664: Cannot convert 'absl::Mutex' to 'absl::Mutex*'.

The line is: absl::MutexLock lock(g_queue_mutex);

This is because the absl::MutexLock constructor requires a pointer to Mutex.

Fix: Change to absl::MutexLock lock(&g_queue_mutex);

Tested on: Windows 10, Visual Studio 2019, CMake 4.2.3.

This fixes the build successfully. Solves for #84

@google-cla
Copy link
google-cla bot commented Mar 12, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0