Can't compile code “launch: program does not exist ”

前端 未结 7 1503
醉话见心
醉话见心 2021-01-31 06:16

I have simple console application in C++ that I succeed to compile with Visual Studio.

I wanted to try Visual Studio Code so I copied the directory to the computer wit

相关标签:
7条回答
  • 2021-01-31 06:53

    It seems that launch.json file needs to have the correct configs.

    please check the configurations as per the below link, if you are using VS build tools https://code.visualstudio.com/docs/cpp/config-msvc

    or delete the launch.json file, gotoRun > Add Configuration... and then choose C++ (Windows), Choose cl.exe build and debug active file. Check the new name in launch.json and try again.

    0 讨论(0)
提交回复
热议问题