升级到 MacOS Ventura 后,使用 GCC 构建在 VSC 中不起作用:致命错误:wchar.h:没有这样的文件或目录

问题描述 投票:0回答:0

升级到 macOS Ventura 后,使用 VS Code,C++,GCC 编译器:/usr/local/bin/g++,我收到这个致命错误:

    from /usr/local/Cellar/gcc/12.2.0/include/c++/12/iosfwd:40,
    from /usr/local/Cellar/gcc/12.2.0/include/c++/12/ios:38,
    from /usr/local/Cellar/gcc/12.2.0/include/c++/12/ostream:38,
    from /usr/local/Cellar/gcc/12.2.0/include/c++/12/iostream:39,
                 
/usr/local/Cellar/gcc/12.2.0/include/c++/12/cwchar:44:10: fatal error: wchar.h: No such file or directory
   44 | #include <wchar.h>
c++ visual-studio-code gcc fatal-error wchar
© www.soinside.com 2019 - 2024. All rights reserved.