Skip to content

msvc: fix broken build against sdk7.1a#1733

Open
hukeyue wants to merge 1 commit intochriskohlhoff:masterfrom
hukeyue:msvc_sdk_71a_fix
Open

msvc: fix broken build against sdk7.1a#1733
hukeyue wants to merge 1 commit intochriskohlhoff:masterfrom
hukeyue:msvc_sdk_71a_fix

Conversation

@hukeyue
Copy link
Copy Markdown

@hukeyue hukeyue commented Mar 29, 2026

In SDKs older than 10.0 such as 7.1a, there is no header file named synchapi.h. windows.h should be fine.

  In file included from D:\a\yass\yass\third_party\asio\include\asio/detail/mutex.hpp:23:
  D:\a\yass\yass\third_party\asio\include\asio/detail/win_mutex.hpp(25,10): fatal error: 'synchapi.h' file not found
     25 | #include <synchapi.h>
        |          ^~~~~~~~~~~~
  Note: including file:        D:\a\yass\yass\third_party\asio\include\asio/detail/push_options.hpp

See https://github.com/hukeyue/yass/actions/runs/23699278385/job/69039985870?pr=89#step:10:739 and https://stackoverflow.com/questions/20927544/using-v110-sdk71-equivalent-for-vs2013 for more.

截屏2026-03-29 10 33 01

In SDKs older than 10.0 such as 7.1a, there is no header file named
synchapi.h. windows.h should be fine.

```
  In file included from D:\a\yass\yass\third_party\asio\include\asio/detail/mutex.hpp:23:
  D:\a\yass\yass\third_party\asio\include\asio/detail/win_mutex.hpp(25,10): fatal error: 'synchapi.h' file not found
     25 | #include <synchapi.h>
        |          ^~~~~~~~~~~~
  Note: including file:        D:\a\yass\yass\third_party\asio\include\asio/detail/push_options.hpp
```
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