gcc 编译 c 语言报错:warning implicit declaration of function ‘system’ 发表于 2020-12-11 | 分类于 ---C | 1)、报错信息 12345------------------------gcc main.c -o main ; ./mainmain.c: In function ‘container_main’:main.c:22:2: warning: implicit declaration of function ‘system’ [-Wimplicit-function-declaration] 22 | system("mount -t proc proc /proc"); | ^~~~~~ 2)、解决方案在文件头加入#include <stdlib.h>