Menu

Asy 2.38 compilation error on Fedora 24

Help
jamestus
2016-08-02
2016-08-02
  • jamestus

    jamestus - 2016-08-02

    I am getting a compilation error on Fedora 24 trying to compile 2.38. The error seems to be related to C++ compiler flag -ansi, which I can not override with CXXFLAGS. Irrelevant lines have been removed from below.

    [jarmo@localhost asymptote]$ ./configure --prefix=${HOME} CXXFLAGS="-std=c++11"
    [jarmo@localhost asymptote]$ make
    g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread -DFFTWPP_SINGLE_THREAD  -std=c++11 -g -O3 -ansi -fno-var-tracking   -I. -Igc-7.4.2/include -o camperror.o -c camperror.cc
    In file included from /usr/include/c++/6.1.1/unordered_map:35:0,
                     from memory.h:22,
                     from common.h:35,
                     from camperror.h:16,
                     from camperror.cc:14:
    /usr/include/c++/6.1.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
    
     
  • John Bowman

    John Bowman - 2016-08-02

    Yes this is in my local TODO list. For now try using CFLAGS instead of CXXFLAGS.

     

Log in to post a comment.