编译scipsuit(linux)

时间:2015-06-08 20:50:40

标签: scip

我下载了scipsuit并试图“制造”它。这是我得到的错误。知道怎么解决吗?

make[2]: Leaving directory `/shared/shelley/khashab2/SCIP/extracted/zimpl-3.3.2'
-> compiling obj/O.linux.x86_64.gnu.opt/lib/mpsinput.o
In file included from src/basevectors.h:24,
                 from src/svector.h:25,
                 from src/slinsolver.h:27,
                 from src/clufactor.h:23,
                 from src/clufactor.cpp:19:
src/rational.h:119: error: only declarations of constructors can be ‘explicit’
src/rational.h:122: error: only declarations of constructors can be ‘explicit’
In file included from src/basevectors.h:24,
                 from src/spxlpbase.h:28,
                 from src/spxlp.h:24,
                 from src/spxsolver.h:30,
                 from src/spxratiotester.h:26,
                 from src/enter.cpp:23:
src/rational.h:119: error: only declarations of constructors can be ‘explicit’
src/rational.h:122: error: only declarations of constructors can be ‘explicit’
make[3]: *** [obj/O.linux.x86_64.gnu.opt/lib/clufactor.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from src/basevectors.h:24,
                 from src/spxlpbase.h:28,
                 from src/spxlp.h:24,
                 from src/spxsolver.h:30,
                 from src/changesoplex.cpp:22:
src/rational.h:119: error: only declarations of 
... 

以下是GCC版本:

[khashab2@austen extracted]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
Copyright (C) 2010 Free Software Foundation, Inc.

1 个答案:

答案 0 :(得分:1)

您的GCC版本太旧了。您可以使用较新的版本(推荐),也可以尝试使用LEGACY=true进行编译。这将禁用理性解决模式。