g++ -static -o helloworld helloworld.cpp
出错提示:
ld: library not found for -lcrt0.o
collect2: error: ld returned 1 exit status
查了一下有说 mac 下的 c 编译器不支持静态编译参数。。。
为什么呢?
出错提示:
ld: library not found for -lcrt0.o
collect2: error: ld returned 1 exit status
查了一下有说 mac 下的 c 编译器不支持静态编译参数。。。
为什么呢?