看板 MAC 關於我們 聯絡資訊
※ 引述《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
TauriCrab:不幫修電腦改修程式碼了啊~ (逃) 05/04 11:16
ryanlei:呃...兩個main() 不錯才怪 05/04 13:09