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

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

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2793 | 回復(fù): 1
打印 上一主題 下一主題

makefile鏈接出錯(cuò) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2006-04-08 05:18 |只看該作者 |倒序?yàn)g覽
CC = gcc
LIB=-I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient
CL=`pkg-config --cflags --libs gtk+-2.0 gthread-2.0`
OBJ=main.o face.o callback.o init.o write.o read.o thread.o error.o
all: $(OBJ) ice.h
        $(CC) $(OBJ) -o ice $(LIB) $(CL)
main.o:main.c main.h thread.h face.h init.h read.h
        $(CC) -c -g -Wall main.c $(LIB) $(CL)
face.o:face.c face.h callback.h
        $(CC) -c -g -Wall face.c $(LIB) $(CL)
callback.o:callback.c callback.h write.h read.h thread.h
        $(CC) -c -g -Wall callback.c $(LIB) $(CL)
init.o: init.c init.h error.h thread.h read.h
        $(CC) -c -g -Wall init.c $(LIB) $(CL)
write.o:write.c write.h init.h thread.h error.h
        $(CC) -c -g -Wall write.c $(LIB) $(CL)
read.o:read.c init.h read.h thread.h write.h
        $(CC) -c -g -Wall read.c $(LIB) $(CL)
thread.o: thread.c thread.h read.h
        $(CC) -c -g -Wall thread.c $(LIB) $(CL)
error.o: error.c error.h
        $(CC) -c -g -Wall error.c $(LIB) $(CL)
clean:
        rm -f $(OBJ)
我覺得挺簡單的,但是make 后,出險(xiǎn)的錯(cuò)誤如下:
face.o(.data+0x24): In function `u1_set_p1':
/root/face.c:10: multiple definition of `Addr6054'
main.o(.data+0x24):/root/main.c:14: first defined here
face.o(.data+0x30): In function `u1_set_p1':
/root/face.c:11: multiple definition of `Addr6063'
main.o(.data+0x30):/root/main.c:14: first defined here
callback.o(.data+0x24): In function `set_back':
/root/callback.c:9: multiple definition of `Addr6054'
main.o(.data+0x24):/root/main.c:14: first defined here
callback.o(.data+0x30): In function `set_back':
/root/callback.c:9: multiple definition of `Addr6063'
main.o(.data+0x30):/root/main.c:14: first defined here
init.o(.data+0x24): In function `my_connect':
/root/init.c:10: multiple definition of `Addr6054'
main.o(.data+0x24):/root/main.c:14: first defined here
init.o(.data+0x30): In function `my_connect':
/root/init.c:10: multiple definition of `Addr6063'
main.o(.data+0x30):/root/main.c:14: first defined here
write.o(.data+0x24): In function `writecom':
/root/write.c:12: multiple definition of `Addr6054'
main.o(.data+0x24):/root/main.c:14: first defined here
write.o(.data+0x30): In function `writecom':
/root/write.c:15: multiple definition of `Addr6063'
main.o(.data+0x30):/root/main.c:14: first defined here
read.o(.data+0x24): In function `CRC16':
/root/read.c:13: multiple definition of `Addr6054'
main.o(.data+0x24):/root/main.c:14: first defined here
read.o(.data+0x30): In function `CRC16':
/root/read.c:15: multiple definition of `Addr6063'
main.o(.data+0x30):/root/main.c:14: first defined here
thread.o(.data+0x24): In function `ShowValueS':
/root/thread.c:11: multiple definition of `Addr6054'
main.o(.data+0x24):/root/main.c:14: first defined here
thread.o(.data+0x30): In function `ShowValueS':
/root/thread.c:11: multiple definition of `Addr6063'
main.o(.data+0x30):/root/main.c:14: first defined here
error.o(.data+0x24): In function `on_message':
/root/error.c:12: multiple definition of `Addr6054'
main.o(.data+0x24):/root/main.c:14: first defined here
error.o(.data+0x30): In function `on_message':
/root/error.c:12: multiple definition of `Addr6063'
main.o(.data+0x30):/root/main.c:14: first defined here
collect2: ld returned 1 exit status
make: *** [all] Error 1
調(diào)了一天也沒有調(diào)通,
在線等待,拜謝...

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2006-04-10 13:22 |只看該作者
謝謝版主,我的頭文件沒有EXTERN聲明.變成了定義,才導(dǎo)致這種錯(cuò)誤,實(shí)在不好意思,您的文章我看過了,比較棒的文章,深入淺出,以后有什么問題還要麻煩您啊
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(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)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP