Re: g++ version 7.5.0 and library <memory_resource>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 7 Jun 2020, hbusch@xxxxxxxxxxxxxx wrote:

Hi,
I am using g++ version 7.5.0 on Linux Mint 19 Tara:

g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

When I try to compile a source file which uses the Standard library header <memory_resource> I get the following error:

main.cpp:7:10: fatal error: memory_resource: No such file or directory

As to my knowledge g++ version 7.5.0 supports C++17 and library <memory_resource> is included since C++17. At least, this page tells me that it has to be there:

https://gcc.gnu.org/onlinedocs/gcc-7.5.0/libstdc++/api/a01004_source.html

Even adding -std=gnu++17 throws the same error.

Can anybody please shed some light on this ?

Try <experimental/memory_resource>

--
Marc Glisse



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux