Re: [軟體] CodeBlocks寫C

看板MAC作者 (zonble)時間13年前 (2011/05/04 10:30), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《w1112321 (友藏)》之銘言: : It seems that this project has not been built yet : Do you want to build it now? : 點了yes之後還是沒有跑出來 : 下面的框框顯示 : -------------- Build: Debug in tttttest --------------- : Linking console executable: bin/Debug/tttttest : ld: duplicate symbol _main in obj/Debug/main.o and obj/Debug/Untitled2.o : collect2: ld returned 1 exit status : Process terminated with status 1 (0 minutes, 0 seconds) : 0 errors, 0 warnings 呃,錯誤訊息不是說得很清楚嗎?你在 main.c 裡頭,以及 Untitled2.c 裡頭,都寫了 main(),linker 不讓你過, 自然跑不出來。 有錯誤訊息要去看嘛(丟筆)。 -- zonble.net cocoa.zonble.net -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.69.67.252

05/04 11:16, , 1F
不幫修電腦改修程式碼了啊~ (逃)
05/04 11:16, 1F

05/04 13:09, , 2F
呃...兩個main() 不錯才怪
05/04 13:09, 2F
文章代碼(AID): #1DmBexP8 (MAC)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #1DmBexP8 (MAC)