c++ - 在 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>
我一直在一遍又一遍地尝试,但我正要放弃,因为我一直在浪费我的时间。
我尝试重新编写文件,但更多的错误不断出现,所以我迫切需要帮助。
如果有人可以帮我解决这个问题,那对我来说非常有帮助:)
谢谢你。
解决方案
推荐阅读
- awk - 比较特定列的两行中的值
- php - 使用另一个关联数组中的值检查关联数组值
- sql-server - EF Core 3.0 存储过程:使用参数而不是模型执行过程
- chocolatey - 没有版本的巧克力清单?
- oozie - 如何在一天内多次输入到达时设计 Oozie 协调器
- r - 在闪亮的 R 中访问动态 ID
- javascript - 我有 json 文件,对于每个用户,我正在使用 file.write() 写入文件,但它只使用 javascript 写入最后一个用户
- c# - 无法加载文件或程序集“Newtonsoft.Json,版本=12.0.0.0,文化=中性,PublicKeyToken=30ad4fe6b2a6aeed”或其依赖项之一
- reactjs - 反应管理称为数据的查询字符串
- c# - Web API 2 控制器与实体框架 6 与包含