构建开发环境

  1. sudo apt-get update
  2. sudo apt install gcc
  3. sudo apt install g++
  4. sudo apt-get install gdb
  5. sudo apt-get install make

编写测试程序

#include <stdio.h>

int main() {
    printf("Hello, world!\n");
    return 0;
}
gcc -o hello_world hello_world.c
./hello_world