中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

源码编译失败

问题现象描述

对从x86_64环境中鲲鹏DevKit应用迁移工具中修改完成的源码进行编译时,返回以下信息:

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/wtlay.h”文件 516行,
1
516    inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){ 

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