Ubuntu下编译C语言程序(同时给编译生成的文件命名)

1.创建c文件 test.c

touch test.c

2.编写test.c

vim test.c
#include "stdio.h"
int main(){
    printf("Welcom to here!!! 
");
    return 0;    
}

3.编译(注意 -o test表示:生成的执行码名称为test,不然都是默认的a)

gcc -o test test.c
原文地址:https://www.cnblogs.com/xiaomingzaixian/p/8561790.html