-3

I created an empty C++ project to do some c++ training

I get this error as I build, so I want to upgrade my compiler to latest or at least 17

error C7529: multiple using-declarators require at least '/std:c++17'

  • I just cannot find the regular compiler options window/ui

  • I looked everywhere, all I get is some sort of JSON config file

{
  "configurations": [
    {
      "inheritEnvironments": [
        "msvc_x64"
      ],
      "name": "x64-Debug",
      "includePath": [
        "${env.INCLUDE}",
        "${workspaceRoot}\\**"
      ],
      "defines": [
        "WIN32",
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
      ],
      "intelliSenseMode": "windows-msvc-x64"
    }
  ]
}

thanks for your help on this

[edit]

vs start

vs2022

vs2022 about

8
  • 3
    This json config makes me think that you are actually using Visual Studio Code, not Visual Studio 2022. Jan 30 at 11:21
  • 1
    You seem to be confused between VSCode and Visual Studio, which is it (could be both of course)?
    – john
    Jan 30 at 11:24
  • ... and this is why you should be using Visual Studio proper - it's much better. The community edition is a free download. Jan 30 at 11:24
  • Maybe you are reading documentation for Visual Studio, but are actually using Visual Studio Code (VS Code)? That's my best guess.
    – john
    Jan 30 at 11:25
  • 1
    right click "cpptraining.vxproj" and select "properties" learn.microsoft.com/en-us/cpp/build/… Jan 30 at 11:38

1 Answer 1

1

ok figured it out. I opened the folder instead of the solution. my bad

select open solution, not open folder

Not the answer you're looking for? Browse other questions tagged or ask your own question.