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

问题描述 投票:0回答:1

我已经下载了Scipoptsuite-6.0.0,并在Scipoptsuite-6.0.0的主目录中通过命令'make''make install'安装了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?

makefile scip
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.