so I am working on c++17 on vs code, and the compiler works fine. But I believe the ide linter is configured on an old version such as 98 for example. Whenever I use a feature that exists in c++11 and above, it shows a warning and sometimes an error that this is a c++11 extension. However, it compiles and works fine, but the error is still there.
Asked
Active
Viewed 43 times
-1
Omar Oshiba
- 45
- 6
-
@ChrisMM Nope, already tried that and it didn't work – Omar Oshiba May 09 '22 at 20:04
-
Was the wrong link, trying to find the right one – ChrisMM May 09 '22 at 20:04
-
1https://stackoverflow.com/questions/45612460/vscode-intellisense-with-c-headers ... eventually links over to here https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference – ChrisMM May 09 '22 at 20:06
-
That's absolutely not a good example of the code, I know. I just use this template for problem solving and competitions, but for a real project, would've had a better template. Thanks for the advice though. – Omar Oshiba May 09 '22 at 20:06
-
It's pretty straightforward once you actually start looking at the C/C++ extension settings. – sweenish May 09 '22 at 20:22
-
VS Code isn't an IDE, and VS Code's C++ formatter is a formatter not a linter. – j D3V May 10 '22 at 03:13