gcc hello.c      直接编译默认输出 a.out可执行文件

gcc hello.c -o hello      生成名字为hello的可执行文件

gcc hello.c -o hello -Wall    强制输出警告(有警告就输出)

gcc hello.c  -o  hello  -lm         使用到外部链接库(-lm 如math.c非C库)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2021-05-30
  • 2021-04-03
相关资源
相似解决方案