devdawei/libstdc-

Big Sur更新后编译c++文件找不到头文件

dandingol03 opened this issue · 0 comments

clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
/Users/wangjunjie/Documents/cmake_source/t1/main.cpp:1:10: fatal error: 'iostream' file not found
#include
^~~~~~~~~~