最简单的方式:

g++ helloworld.cpp

指定名称:

g++ helloworld.cpp -o helloworld

多个文件编译:

g++ runoob1.cpp runoob2.cpp -o runoob

 

相关文章:

  • 2021-06-02
  • 2021-04-25
  • 2021-05-22
  • 2022-12-23
  • 2021-11-30
  • 2021-12-02
  • 2021-12-02
猜你喜欢
  • 2021-10-27
  • 2022-01-05
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
相关资源
相似解决方案