简体   繁体   English

使用错误 <allocators> Ubuntu上的头文件

[英]Error using <allocators> header file on Ubuntu

I'm trying to use the boolinq code in my project and its failing because it uses the allocators header file which doesn't exist on my system. 我正在尝试在项目中使用boolinq代码及其失败,因为它使用了系统中不存在的分配器头文件。 I'm using Ubuntu and all the other STL types are working. 我正在使用Ubuntu,所有其他STL类型都可以使用。 Does anyone know how i can fix this ? 有谁知道我该如何解决?

There is no such header in C++ standard. 在C ++标准中没有这样的标头。 To be honest I have no idea where they got it from, because my Visual Studio (admittedly they are using newer version) does not have it either. 老实说,我不知道他们从哪里得到的,因为我的Visual Studio(承认他们正在使用较新的版本)也没有它。

Comment that include out and you should see what symbol it misses. 评论包括在内,您应该看到它遗漏了什么符号。 std::allocator is in <memory> . std::allocator<memory> If it needs anything else, you'll have to find (possibly replacement for) it or disable it's use. 如果还需要其他功能,则必须查找(可能要替换)或禁用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM