亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪(fǎng)問(wèn)板塊 發(fā)新帖
查看: 3322 | 回復(fù): 4
打印 上一主題 下一主題

如何定位GCC鏈接時(shí)找不到的符號(hào) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-03-03 15:58 |只看該作者 |倒序?yàn)g覽
GCC在鏈接程序時(shí),有些符號(hào)找不到,輸出如下信息:
22 utils.c.text+0x1b6c): undefined reference to `dsputil_static_init'
23 utils.c.text+0x1b7d): undefined reference to `av_crc04C11DB7'
24 utils.c.text+0x1b8e): undefined reference to `av_crc8005'
25 utils.c.text+0x1b9f): undefined reference to `av_crc07'
26 utils.c.text+0x1bc4): undefined reference to `av_crc04C11DB7'
27 utils.c.text+0x1bcc): undefined reference to `av_crc_init'
28 utils.c.text+0x1bf1): undefined reference to `av_crc8005'
29 utils.c.text+0x1bf9): undefined reference to `av_crc_init'
30 utils.c.text+0x1c1e): undefined reference to `av_crc07'
31 utils.c.text+0x1c26): undefined reference to `av_crc_init'

有些符號(hào)是通過(guò)宏定義的,在utils.c中找不到。用什么方法可以定位到這些符號(hào)?
utils.c:(.text+0x1b6c):表示utils.o代碼段0x1b6c的位置嗎?

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2009-03-03 16:01 |只看該作者
呵呵,真有意思,自動(dòng)解析成圖標(biāo)了,不過(guò)這些圖標(biāo)還真表示了我當(dāng)前的心情

GCC在鏈接程序時(shí),有些符號(hào)找不到,輸出如下信息:
22 utils.c: (.text+0x1b6c): undefined reference to `dsputil_static_init'
23 utils.c: (.text+0x1b7d): undefined reference to `av_crc04C11DB7'
24 utils.c: (.text+0x1b8e): undefined reference to `av_crc8005'
25 utils.c: (.text+0x1b9f): undefined reference to `av_crc07'
26 utils.c: (.text+0x1bc4): undefined reference to `av_crc04C11DB7'
27 utils.c: (.text+0x1bcc): undefined reference to `av_crc_init'
28 utils.c: (.text+0x1bf1): undefined reference to `av_crc8005'
29 utils.c: (.text+0x1bf9): undefined reference to `av_crc_init'
30 utils.c: (.text+0x1c1e): undefined reference to `av_crc07'
31 utils.c: (.text+0x1c26): undefined reference to `av_crc_init'

有些符號(hào)是通過(guò)宏定義的,在utils.c中找不到。用什么方法可以定位到這些符號(hào)?
utils.c: (.text+0x1b6c):表示utils.o代碼段0x1b6c的位置嗎?

[ 本帖最后由 painkiller0513 于 2009-3-3 16:02 編輯 ]

論壇徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵節(jié)徽章
日期:2015-03-06 15:50:392015亞冠之大阪鋼巴
日期:2015-06-12 16:01:352015年中國(guó)系統(tǒng)架構(gòu)師大會(huì)
日期:2015-06-29 16:11:2815-16賽季CBA聯(lián)賽之四川
日期:2018-12-17 14:10:21
3 [報(bào)告]
發(fā)表于 2009-03-03 16:12 |只看該作者
grep 搜索一下,看看有沒(méi)有定義這幾個(gè)函數(shù)

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2009-03-03 23:34 |只看該作者
我一般都是在souce insight中直接搜索的

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2009-03-03 23:34 |只看該作者
可以使用ldd看一下,看看這個(gè)模塊依賴(lài)哪些庫(kù)
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專(zhuān)區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP