我要评分
获取效率
正确性
完整性
易理解

Failed to Compile the Source Code

Symptom

When compiling the modified source code on the Kunpeng platform, the following information is displayed:

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....

Solution

Go to line 516 of the smartdenovo-master/wtlay.h file.
1
516    inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){ 

Delete inline or add static to the beginning of the line.