Skip to content

[cpptools] Unknown C++ standard control flag: -std=gnu++2b #2150

@Wongboo

Description

@Wongboo

Brief Issue Summary

I think it's bug about C/C++ extension doesn't support control flag: -std=gnu++2b, anyway it eventually pops up in CMake/Build

CMake Tools Diagnostics

I cannot run CMake: Log Diagnostics, insteead run C/C++: Log Diagnostics

Version: 1.6.0
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "${workspaceFolder}/**",
        "${vcpkgRoot}/x64-windows/include"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "windowsSdkVersion": "10.0.19041.0",
    "compilerPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64\\cl.exe",
    "cStandard": "c17",
    "intelliSenseMode": "windows-msvc-x64",
    "compilerArgs": [],
    "cppStandard": "c++20",
    "intelliSenseModeIsExplicit": false,
    "cStandardIsExplicit": false,
    "cppStandardIsExplicit": true,
    "compilerPathIsExplicit": false,
    "browse": {
        "path": [
            "${workspaceFolder}/**",
            "${vcpkgRoot}/x64-windows/include"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}

Debug Log

[cpptools] Unknown C++ standard control flag: -std=gnu++2b
[cpptools] Unknown standard control flag: -std=gnu++2b
[cpptools] Unknown C++ standard control flag: -std=gnu++2b
[cpptools] Unknown standard control flag: -std=gnu++2b
[cpptools] Unknown C++ standard control flag: -std=gnu++2b
[cpptools] Unknown standard control flag: -std=gnu++2b
[cpptools] Unknown C++ standard control flag: -std=gnu++2b
[cpptools] Unknown standard control flag: -std=gnu++2b
[cpptools] Unknown C++ standard control flag: -std=gnu++2b
[cpptools] Unknown standard control flag: -std=gnu++2b

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions