CodeBlocks寫C - MAC

By Olga
at 2011-05-04T10:23
at 2011-05-04T10:23
Table of Contents
之前用windows系統都是用Dev C++寫程式
現在改成MAC了要找寫程式的工具
查了一下有找到XCODE 跟 CodeBlocks
問題來了 我在CodeBlocks上要試試寫出hello world
可是一直都跑不出來
以下程式碼:
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("hello world!");
}
看之前的po文mac很像不用打system("pause")
點了Build and Run 就會跳出一個框框
Information
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
請問是我的設定錯誤嗎還是程式碼錯了??
剛碰mac真的好不熟悉阿~~
麻煩各位解解決小的疑惑
謝謝m(__)m
--
推 inking:兩百多跟兩百出頭差很多吧。三百分制時,兩百整還可以上國02/04 04:52
推 Lawilet:父02/04 04:53
→ inking:立基中,兩百三到兩百六之間大概台北縣立高中吧02/04 04:53
→ inking:...........02/04 04:53
--
Tags:
MAC
All Comments

By Liam
at 2011-05-05T14:48
at 2011-05-05T14:48

By Valerie
at 2011-05-09T18:50
at 2011-05-09T18:50

By Caroline
at 2011-05-14T16:08
at 2011-05-14T16:08

By Hedy
at 2011-05-17T10:01
at 2011-05-17T10:01

By Rosalind
at 2011-05-18T08:06
at 2011-05-18T08:06

By Jack
at 2011-05-21T07:28
at 2011-05-21T07:28

By Elizabeth
at 2011-05-21T19:11
at 2011-05-21T19:11

By Joseph
at 2011-05-23T06:13
at 2011-05-23T06:13

By Tracy
at 2011-05-25T07:46
at 2011-05-25T07:46

By Isabella
at 2011-05-28T01:55
at 2011-05-28T01:55

By Audriana
at 2011-06-01T10:05
at 2011-06-01T10:05

By Vanessa
at 2011-06-03T12:01
at 2011-06-03T12:01

By Frederica
at 2011-06-03T13:21
at 2011-06-03T13:21

By Carolina Franco
at 2011-06-03T17:31
at 2011-06-03T17:31
Related Posts
Macbook重灌Mac OS X

By Kama
at 2011-05-04T06:48
at 2011-05-04T06:48
MINI ??

By Isabella
at 2011-05-04T01:57
at 2011-05-04T01:57
Bootcamp下使用1394外接硬碟~

By Irma
at 2011-05-04T01:49
at 2011-05-04T01:49
youtube網頁怪怪的

By Daph Bay
at 2011-05-04T01:40
at 2011-05-04T01:40
轉檔程式

By Lily
at 2011-05-04T01:37
at 2011-05-04T01:37