在我删除 cmake-build-debug 文件夹并根据问题的答案重新启动 CMAKE 项目之前:<>,一切正常。 我将此文件添加到 /Library/Developer/CommandLineTools/usr/include/c++/v1、usr/local/include 和 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 . 完整的错误是
fatal error: 'bits/stdc++.h' file not found
#include <bits/stdc++.h>
^~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [CMakeFiles/d1.dir/e/1/d1.cpp.o] Error 1
make[2]: *** [CMakeFiles/d1.dir/all] Error 2
make[1]: *** [CMakeFiles/d1.dir/rule] Error 2
make: *** [d1] Error 2