问题1:私自添加万能头文件后,无法检测,甚至不能直接在列表新建cpp文件,必须要重命名一变,或者⌘+n新建才能解决。不然就报错:
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
总之一定出现重命名面板:
常见的坑:文件名带空格容易出bug,开头写注释容易出bug。都是泪,别问怎么知道的。