---
title: 源码编译失败
description: "在鲲鹏平台，对修改完成的源码进行编译时，返回以下信息："
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevps/portingadvisor/demo/smartdenovopt_21_0016.html
sourcePath: /source/zh/kunpengdevps/portingadvisor/demo/smartdenovopt_21_0016.html
indexId: a6e0655ea86254f9c7c4edb7d0f98a63457daf94c45303f09a63741b41b4a5fb70
---
# 源码编译失败

#### 问题现象描述

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

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


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