Mac 终端 c++ 链接阶段 ld: file too small (length=0) file 'main.o' for architecture x86_64 怎么解决
检查一下main.o这个文件,看内容是否为空(提示了length=0)