Stymied by VS Code
I’m a hobbyist, and after a few months of learning JS for fun I thought, ‘why not just go to C++ and learn the fundamentals’? I want to code little games.
It’s taken me three days to get VSC to compile a ‘Hello World’ program on my Mac using Clang++. I’ve followed the instructions, I’ve asked ChatGPT, I’ve gone through the tuts, I’ve installed the extensions… and finally got to a point where it would work if I pasted new task/launch JSONs for every project.
And then…
Tried using the <string> lib and it now won’t compile an std::string name {}; declaration.
Argh! Double argh! (But definitely no std::string argh! {};)🙂
Seriously though, what could be going wrong here? I’ve installed the compile and run extension, but still won’t compile string declarations using curly braces. Is VSC just the wrong choice for Mac or. Should I stick to nice and dynamic JS.
https://redd.it/1omrw3v
@r_cpp
Post #24170
23