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

  免費注冊 查看新帖 |

Chinaunix

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

makefile錯誤,在線等待.... [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-04-08 03:59 |只看該作者 |倒序瀏覽
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 后,出險的錯誤如下:
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)通,

麻煩哪位看看,急用.....先謝過了

[ 本帖最后由 dqk0822 于 2006-4-8 05:41 編輯 ]

論壇徽章:
0
2 [報告]
發(fā)表于 2006-04-08 05:42 |只看該作者
快睡著了

論壇徽章:
1
榮譽版主
日期:2011-11-23 16:44:17
3 [報告]
發(fā)表于 2006-04-08 07:43 |只看該作者
multiple definition 多次定義.

論壇徽章:
208
巨蟹座
日期:2013-09-02 09:16:36卯兔
日期:2013-09-02 20:53:59酉雞
日期:2013-09-05 21:21:45戌狗
日期:2013-10-15 20:51:17寅虎
日期:2013-10-18 21:13:16白羊座
日期:2013-10-23 21:15:19午馬
日期:2013-10-25 21:22:48技術(shù)圖書徽章
日期:2013-11-01 09:11:32雙魚座
日期:2013-11-01 20:29:44丑牛
日期:2013-11-01 20:40:00卯兔
日期:2013-11-11 09:21:32酉雞
日期:2013-12-04 19:56:39
4 [報告]
發(fā)表于 2006-04-08 09:49 |只看該作者
重復定義,估計lz定義和申明沒弄清

論壇徽章:
0
5 [報告]
發(fā)表于 2006-04-10 13:05 |只看該作者
謝謝各位啦,我發(fā)現(xiàn)了,原來是在頭文件里聲明的時候沒有加EXTERN,多次包含導致的,真是不好意思,謝謝,謝謝各位關(guān)心....
您需要登錄后才可以回帖 登錄 | 注冊

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

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP