Skip to content
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

error C2429: 语言功能 "嵌套命名空间定 义" 需要编译器标志"/std:c++17" #3107

Open
BFjacky opened this issue Dec 6, 2024 · 2 comments

Comments

@BFjacky
Copy link

BFjacky commented Dec 6, 2024

When I build program. It throw errors cause of c++ version.
But I already set config in "binding.gyp". It still throw that error.
How to solve this problem !!

binding.gyp
"cflags_cc": [
"/std=c++17"
],
"msvs_settings": {
"VCLinkerTool": {
"AdditionalOptions": [
"/std:c++17"
]
}
},

@cclauss
Copy link
Contributor

cclauss commented Dec 6, 2024

@Akarinnnnn
Copy link

If one answer solution doesn't work, try another one mentioned. Sometimes ClCompile, sometimes VCCLCompilerTool

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

No branches or pull requests

3 participants