源码编译失败

问题现象描述

在鲲鹏平台,对修改完成的源码进行编译时,返回以下信息:

1
2
3
4
5
6
7
/tmp/ccBHOwYi.o: In function `merge_bubbles_strgraph':
wtlay.c:(.text+0x984d): undefined reference to `cut_biedge_strgraph2'
wtlay.c:(.text+0x9861): undefined reference to `cut_biedge_strgraph2'
wtlay.c:(.text+0x992d): undefined reference to `cut_biedge_strgraph2'
wtlay.c:(.text+0x994a): undefined reference to `cut_biedge_strgraph2'
collect2: error: ld returned 1 exit status 
Makefile:48: recipe for target 'wtlay' failed make: *** [wtlay] Error 1 make: *** Waiting for unfinished jobs....

解决方案

编辑“smartdenovo-master/wtlay.h”文件516行:
1
516    inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){ 

删除“iniline”或在该行前面添加“static”。