Scipoptsuite-6.0.0中的GCG编译错误:reader_zpl.c :(。text + 0x319):未定义对“ zpl_read”的引用

时间:2018-12-18 02:42:21

标签: makefile scip

我已经下载了Scipoptsuite-6.0.0,并通过命令'make''make install'在Scipoptsuite-6.0.0的主目录中安装了scip。然后,我通过同一目录中的“ make gcg”命令编译了GCG,并且发生了与“ reader_zpl.c”相关的错误:

-> linking bin/gcg-3.0.0.linux.x86_64.gnu.opt.spx2
/home/yang/Documents/Software/scipoptsuite-6.0.0/scip/lib/static/libscip.linux.x86_64.gnu.opt.a(reader_zpl.o): In function `readerReadZpl':
reader_zpl.c:(.text+0x319): undefined reference to `zpl_read'
reader_zpl.c:(.text+0x61b): undefined reference to `zpl_read_with_args'
/home/yang/Documents/Software/scipoptsuite-6.0.0/scip/lib/static/libscip.linux.x86_64.gnu.opt.a(reader_zpl.o): In function `xlp_addcon_term':
reader_zpl.c:(.text+0xb3e): undefined reference to `numb_todbl'
reader_zpl.c:(.text+0xb51): undefined reference to `numb_todbl'
reader_zpl.c:(.text+0xbb3): undefined reference to `term_is_linear'
reader_zpl.c:(.text+0xc94): undefined reference to `mono_get_coeff'
reader_zpl.c:(.text+0xc9c): undefined reference to `numb_todbl'
reader_zpl.c:(.text+0xccb): undefined reference to `term_get_elements'
reader_zpl.c:(.text+0xcdd): undefined reference to `term_get_element'
reader_zpl.c:(.text+0xcea): undefined reference to `mono_get_var'
reader_zpl.c:(.text+0xcf5): undefined reference to `mono_get_function'
reader_zpl.c:(.text+0xd07): undefined reference to `mono_get_var'
reader_zpl.c:(.text+0xd8c): undefined reference to `term_get_degree'

并出现许多相同类型的错误:

/home/yang/Documents/Software/scipoptsuite-6.0.0/scip/lib/static/libscip.linux.x86_64.gnu.opt.a(reader_zpl.o): In function `xlp_getlower':
reader_zpl.c:(.text+0x320c): undefined reference to `bound_new'
reader_zpl.c:(.text+0x323e): undefined reference to `bound_new'

    /home/yang/Documents/Software/scipoptsuite-6.0.0/scip/lib/static/libscip.linux.x86_64.gnu.opt.a(reader_zpl.o): In function `xlp_addtocost':
reader_zpl.c:(.text+0x33e9): undefined reference to `numb_todbl'
collect2: error: ld returned 1 exit status
Makefile:547: recipe for target 'bin/gcg-3.0.0.linux.x86_64.gnu.opt.spx2' failed
make[4]: *** [bin/gcg-3.0.0.linux.x86_64.gnu.opt.spx2] Error 1
make[4]: Leaving directory '/home/yang/Documents/Software/scipoptsuite-6.0.0/gcg'
Makefile:402: recipe for target 'mainfiles' failed
make[3]: [mainfiles] Error 2 (ignored)
make[3]: Leaving directory '/home/yang/Documents/Software/scipoptsuite-6.0.0/gcg'
make[2]: Leaving directory '/home/yang/Documents/Software/scipoptsuite-6.0.0/gcg'

** Build complete.
** Find your GCG binary in "/home/yang/Documents/Software/scipoptsuite-6.0.0/gcg/bin".

在编译之后,我找不到GCG二进制文件。当我尝试在'scipoptsuite-6.0.0 / gcg'子目录中编译GCG时,这些错误再次出现。我该如何解决这些错误才能运行gcg?

1 个答案:

答案 0 :(得分:0)

关于ZIMPL是否存在,似乎有些困惑。 尝试使用ZIMPL = false(作为对make的调用的参数)进行第一次构建,或者尝试使用ZIMPL = true进行GCG构建。