vscode configures remote C++ environment

1. Check gcc --version and gdb --version
Insert image description hereInsert image description here
2. Open VSCode and make sure the C/C++ extension is installed

3. Click on the cpp file,
press the Ctrl + Shift + B key combination, and select the default build task (Build Task).
Insert image description here
After building, produce the executable file and
Insert image description here
enter the ./helloworld command in the terminal to run the program. You will see the output as Hello, World!
Insert image description here

Guess you like

Origin blog.csdn.net/qq_16792139/article/details/132869706