Comments (7)
It looks like you might have an extra hyphen in your command argument. Can you try -std=c++20
instead of --std=c++20
?
from vscode-cpptools.
It looks like you might have an extra hyphen in your command argument. Can you try
-std=c++20
instead of--std=c++20
?
Tried that, exactly the same result. Still doesn't remove the initial -std=gnu++14
.
Starting build...
/usr/bin/clang -std=gnu++14 -std=c++20 -fcolor-diagnostics -fansi-escape-codes -g /Users/bright-silicon/lab/tictac-online/main.cpp -o /Users/bright-silicon/lab/tictac-online/main
/Users/bright-silicon/lab/tictac-online/main.cpp:30:21: error: no member named 'format' in namespace 'std'
std::cout << std::format(" {} | ", c + 1);
~~~~~^
/Users/bright-silicon/lab/tictac-online/main.cpp:33:22: error: no member named 'format' in namespace 'std'
std::cout << std::format("{} |", board[c * r]);
~~~~~^
2 errors generated.
Build finished with error(s).
from vscode-cpptools.
@alligatorjazz A 2nd -std should replace any earlier ones (it does for me).
from vscode-cpptools.
@alligatorjazz Are you #including
the header? UPDATE: I found your example code (you are including it).
from vscode-cpptools.
@alligatorjazz Are you using clang version 17 or newer? It was only taken out of experimental with that version.
from vscode-cpptools.
@alligatorjazz The Apple clang that comes with Mac is still LLVM version 16. You could try adding arg -fexperimental-library to see if that works.
from vscode-cpptools.
This issue has been closed because it needs more information and has not had recent activity.
from vscode-cpptools.
Related Issues (20)
- Display additional Doxygen tags in tooltip documentation HOT 3
- C_Cpp.codeAnalysis.exclude does work with ${workspaceFolder} or ${workspaceFolder]/** HOT 5
- integrated terminal does not support std::thread output HOT 1
- Annoying false-positives in C code HOT 3
- Version v1.20.5 does not find standard headers HOT 2
- After setting win11 folder with file name case sensitive, IntelliSense can't parse symbol HOT 2
- Duplicate Intellisense Hints HOT 6
- Constants defined c++ highlight not working HOT 1
- class "_PEB::<unnamed>" has no field "ImageUsedLargePages" HOT 4
- C/C++ tag parsing status is not in a busy state when the status shows "Initializing..."
- Undefined functions do not report errors HOT 4
- Undefined reference to `WinMain` HOT 5
- Is the warning a bug or a setting problem?
- Semantic token for _countof macro specifically is incorrect HOT 3
- Have trouble when Run VS Code outside the Developer Command Prompt HOT 4
- Dumps cores a lot HOT 1
- strdup missing from intellisense HOT 5
- IntelliSense completion fails to give results in a return statement (works in VS)
- [Regression] The 'Learn how to install a library for this header with vcpkg' option has disappeared HOT 1
- Found a Spelling mistake in the code snippet in time_t description HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cpptools.