![]() ![]() Which I definitely did do as you can see in the tasks.json file I linked below, so I don't see what the problem could be. Make sure to replace the entire contents of your task.json file with the code block provided in the Build helloworld.cpp section. By default, clang++ uses the C++98 standard, which doesn't support the initialization used in helloworld.cpp. If you see build errors mentioning "C++11 extensions", you may not have updated your task.json build task to use the clang++ argument -std=c++17. The guide itself even provides the following related help at the bottom. I have looked at many other stack overflow posts claiming that clang++ is defaulting to c++03 whereas I need to be using c++11, however the guide above uses Range-based for loop is a C++11 extension However as soon as I add the "launch.json" file outlined in "Debug helloworld.cpp" everything stops working and I get the following errors as soon as I try to debug. ![]() Everything works fine until I reach the step "Debug helloworld.cpp", I am able to use the "tasks.json" file to build the. ![]()
0 Comments
Leave a Reply. |