cuberite / cuberite

A lightweight, fast and extensible game server for Minecraft

Home Page:https://cuberite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Building] What's the first GCC version which supports C++17?

f1refa11 opened this issue · comments

Wikipedia said that: "GCC has had complete support for C++17 language features since version 8.", but when i tried to run the compilation using version 8.1.0, an error appeared several times:

/src/cuberite/src/Globals.h:143:19: fatal error: variant: No such file or directory
 #include <variant>

and then the compilation crashes.
So what gcc version do i need to support c++17?

In theory GCC 8 should work - are you sure you're actually using 8 to compile?

In any case, it's not an officially supported configuration, we only support compilers back to what debian stable is using (gcc 10 ATM) so you're really on your own here.