如何在mac终端上编译C,C++

如题所述

比如,你要编译的是hello.c 或者hello.cpp
gcc hello.c -o hello或
g++ hello.cpp -o hello
更多的可以去参考linux下gcc/g++的编译命令
温馨提示:答案为网友推荐,仅供参考
相似回答