hjianhao 2006-5-9 08:18
请教一个CW9的编译错误
先用AppWizard建立了一个工程,编写一个程序,正确。
然后新建立了一个空白工程,用同样的程序,编译出现以下错误,不知为何,请各位大虾指点:
Error : illegal function definition
(included from:
SystemPublic.h:32
PalmOS.h:27
DemoMain.c:1)
bitmap.h line 51 BOOL colortable,
Error : declaration syntax error
(included from:
SystemPublic.h:32
PalmOS.h:27
DemoMain.c:1)
bitmap.h line 52 int *transparencyData,
Error : declaration syntax error
(included from:
SystemPublic.h:32
PalmOS.h:27
DemoMain.c:1)
bitmap.h line 53 BOOL multibit,
Error : declaration syntax error
(included from:
SystemPublic.h:32
PalmOS.h:27
DemoMain.c:1)
bitmap.h line 54 BOOL bootscreen,
Error : ';' expected
(included from:
SystemPublic.h:32
PalmOS.h:27
DemoMain.c:1)
bitmap.h line 55 int density);
Error : ')' expected
(included from:
SystemMgr.h:50
ConnectionMgr.h:36
SystemPublic.h:34
PalmOS.h:27
DemoMain.c:1)
Window.h line 394 WinHandle WinCreateBitmapWindow (BitmapType *bitmapP, UInt16 *error)
...
ecool 2006-5-10 17:47
你应该没有包含相关的头文件路径,在项目target里面设置sdk的路径。
jamestan 2006-5-24 06:25
其他的错误应该是.h的头文件位置不对引发的,不过
Error : ';' expected
(included from:
SystemPublic.h:32
PalmOS.h:27
DemoMain.c:1)
bitmap.h line 55 int density);
中的";"估计是你用的汉字输入法输入了全角的";"引起的。