Skip to content

Build failure due to C++17 use / lack of explicit standard setting #516

@CasualPokePlayer

Description

@CasualPokePlayer

OS: Debian 11
Compiler: gcc/g++ (Debian 10.2.1-6) 10.2.1 20210110

std::optional is used in a few places, which is a C++17 feature. This results in a build failure for me with the build.sh, as the gcc shipped by Debian defaults to C++14.

Issue is likely resolvable by simply explicitly having an -std=c++17 flag? Maybe also useful: https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_17.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions