Блог пользователя whatever356

Автор whatever356, история, 3 года назад, По-английски

I use vscode for compiling and running my C++ program.I use code runner extension for this purpose.Now I have come to know that this extension is using C++98 to run my code. Now How can I enable c++17 and also add some of my favourite flags ? I am using Ubuntu 20.04

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
3 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

press ctrl+shift+p

type "settings"

click on "Preferences: Open Settings (JSON)"

search for "code-runner.executorMap"

you can modify the command they use in the "cpp" section

Done, now you just add the flags you want right after the call of g++ and the file name