xiaomingzaixian

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

1.创建c文件 test.c

touch test.c

2.编写test.c

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

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

gcc -o test test.c

 

分类:

技术点:

相关文章:

  • 2021-12-26
  • 2021-12-19
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2022-02-12
  • 2021-04-03
  • 2021-12-31
  • 2021-11-09
  • 2021-11-23
相关资源
相似解决方案