2025-10-23
Linux C++ Setup and Run with cpprun
2025-10-23 ~ 2026-01-01

The note is generated by ChatGPT.

1. Install C++ Environment

在 Linux 或 WSL 里,C/C++ 程序需要编译器。常用的是 g++(GNU C++ compiler)。
同时,调试程序需要 gdb(GNU Debugger)。

运行:

1
2
sudo apt update
sudo apt install -y build-essential gdb

检查是否安装成功: