首页 > 解决方案 > 在 Vscode 上很难将 c++17 更改为 c++11

问题描述

几个月前,我尝试编译 c++11。我按照此处的说明进行操作, 但随后收到以下错误:

error: 
      function-like macro '__GLIBC_PREREQ' is not defined
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
    ^
In file included from wdq.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/bits/stdc++.h:33:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cuchar:53:11: fatal error: 
      'uchar.h' file not found
 #include <uchar.h>

我一直在一遍又一遍地尝试,但我正要放弃,因为我一直在浪费我的时间。

我尝试重新编写文件,但更多的错误不断出现,所以我迫切需要帮助。

如果有人可以帮我解决这个问题,那对我来说非常有帮助:)

谢谢你。

标签: c++c++11visual-studio-codecompiler-errors

解决方案


推荐阅读