編譯時以下錯誤的含義是什麼?C編譯錯誤
Tilemap.h:21: error: conflicting types for ‘ThreeDWorld’
Tilemap.h:21: error: previous declaration of ‘ThreeDWorld’ was here
Tilemap.h:29: error: conflicting types for ‘CGPoint’
Tilemap.h:29: error: previous declaration of ‘CGPoint’ was here
Tilemap.h:31: error: conflicting types for ‘tileForCoordinates’
Tilemap.h:31: error: previous declaration of ‘tileForCoordinates’ was here
爲什麼它給了什麼呢?我的源文件有它的一個實例是這樣
typedef struct
{
int xPosition;
int yPosition;
}
CGPoint;
你是否偶然使用Obj-C和XCODE? – 2011-04-05 16:38:38
Textmate和Terminal – jarryd 2011-04-05 16:48:14