Skip to content

fix: macos "C++20 or later required." #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

SamuelScheit
Copy link

When trying to build the latest version of the package on macOS it fails with the following error:

/Users/user/Library/Caches/node-gyp/23.5.0/include/node/v8config.h:13:2: error: "C++20 or later required."
   13 | #error "C++20 or later required."
      |  ^

This is caused by the binding.gyp file, which sets the CLANG_CXX_LANGUAGE_STANDARD to c++17

I've fixed it by setting the c++ standard to 20

@dhritzkiv dhritzkiv merged commit 7da74ac into stackgl:master May 21, 2025
4 checks passed
@dhritzkiv
Copy link
Member

Perfect – thank you. This was necessary for nodejs versions > 22, so this is timely for Node 24 support

@dhritzkiv
Copy link
Member

Available in v9.0.0-rc.6

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.

2 participants