---
title: 源码编译失败
description: "对从x86_64环境中鲲鹏DevKit应用迁移工具中修改完成的源码进行编译时，返回以下信息："
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevkithistory/devkit_24/probestpractice/kunpengDevKitProPractice_0030.html
sourcePath: /source/zh/kunpengdevkithistory/devkit_24/probestpractice/kunpengDevKitProPractice_0030.html
indexId: 221e6ca7facf720b52afe450ad3722dd313598125be5b32cc47bdd85704bb12092
---
# 源码编译失败

#### 问题现象描述

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

```
/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行，
```
516    inline int cut_biedge_strgraph2(StringGraph *g, uint32_t node_id, int dir, uint32_t eidx){
```


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


#### 案例参考

https://github.com/ruanjue/smartdenovo/issues/22(https://github.com/ruanjue/smartdenovo/issues/22)
