CodeBlocks寫C - MAC

Table of Contents

※ 引述《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

--

All Comments

Belly avatarBelly2011-05-07
不幫修電腦改修程式碼了啊~ (逃)
Leila avatarLeila2011-05-11
呃...兩個main() 不錯才怪