Skip to content

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

Open

Description

@BFjacky

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"
]
}
},

Activity

  1. cclauss commented on Dec 6, 2024

    @cclauss
    Contributor
  2. Akarinnnnn commented on Dec 16, 2024

    @Akarinnnnn

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions