亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么按《linux下語言變成基礎原理》“多個源文。。”和“頭文件。。。”老是編譯出錯

為什么按《linux下語言變成基礎原理》“多個源文。。”和“頭文件。。。”老是編譯出錯

supercoko 2016-03-18 20:29:32
tmp/cci3FsES.o:在函數‘max’中:2.c:(.text+0x0): `max'被多次定義/tmp/ccvvasUG.o:1.c:(.text+0x0):第一次在此定義collect2: error: ld returned 1 exit status1.c: In function ‘main’:1.c:12:19: warning: implicit declaration of function ‘max’ [-Wimplicit-function-declaration]???? int maxNumber=max(a1,a2);?????????????????? ^1.c:13:19: warning: implicit declaration of function ‘min’ [-Wimplicit-function-declaration]???? int minNumber=min(a1,a2);?????????????????? ^2.o:在函數‘max’中:2.c:(.text+0x0): `max'被多次定義1.o:1.c:(.text+0x0):第一次在此定義3.o:在函數‘min’中:3.c:(.text+0x0): `min'被多次定義1.o:1.c:(.text+0x15):第一次在此定義collect2: error: ld returned 1 exit status
查看完整描述

1 回答

?
asd8532

TA貢獻143條經驗 獲得超187個贊

你最好把代碼給出來和你的編譯命令

查看完整回答
反對 回復 2016-04-26
  • 1 回答
  • 0 關注
  • 1942 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號