初级会员
- 积分
- 113
- 金钱
- 113
- 注册时间
- 2015-4-12
- 在线时间
- 7 小时
|
5金钱
在ucgui中,使用CD卡作为外部字库时,提醒出现这些错误!源程序文件是从EMWIN实验23 汉字显示(FLASH外置字库)从拷贝的,我用的板子是战舰板子
compiling GUI_FontHZ12.c...
..\APP\My_font_HZ\GUI_FontHZ12.c(40): error: #20: identifier "GUI_GETCHARINFO" is undefined
..\APP\My_font_HZ\GUI_FontHZ12.c(40): error: #29: expected an expression
..\APP\My_font_HZ\GUI_FontHZ12.c(40): error: #67: expected a "}"
..\APP\My_font_HZ\GUI_FontHZ12.c(46): warning: #12-D: parsing restarts here after previous syntax error
..\APP\My_font_HZ\GUI_FontHZ12.c(50): error: #29: expected an expression
..\APP\My_font_HZ\GUI_FontHZ12.c(50): error: #67: expected a "}"
..\APP\My_font_HZ\GUI_FontHZ12.c(56): warning: #12-D: parsing restarts here after previous syntax error
compiling GUI_FontHZ16.c...
..\APP\My_font_HZ\GUI_FontHZ16.c(41): error: #20: identifier "GUI_GETCHARINFO" is undefined
..\APP\My_font_HZ\GUI_FontHZ16.c(41): error: #29: expected an expression
..\APP\My_font_HZ\GUI_FontHZ16.c(41): error: #67: expected a "}"
..\APP\My_font_HZ\GUI_FontHZ16.c(46): warning: #12-D: parsing restarts here after previous syntax error
..\APP\My_font_HZ\GUI_FontHZ16.c(47): error: #169: expected a declaration
..\APP\My_font_HZ\GUI_FontHZ16.c(51): error: #29: expected an expression
..\APP\My_font_HZ\GUI_FontHZ16.c(51): error: #67: expected a "}"
..\APP\My_font_HZ\GUI_FontHZ16.c(57): warning: #12-D: parsing restarts here after previous syntax error
compiling GUI_FontHZ24.c...
..\APP\My_font_HZ\GUI_FontHZ24.c(40): error: #20: identifier "GUI_GETCHARINFO" is undefined
..\APP\My_font_HZ\GUI_FontHZ24.c(40): error: #29: expected an expression
..\APP\My_font_HZ\GUI_FontHZ24.c(40): error: #67: expected a "}"
..\APP\My_font_HZ\GUI_FontHZ24.c(46): warning: #12-D: parsing restarts here after previous syntax error
..\APP\My_font_HZ\GUI_FontHZ24.c(50): error: #29: expected an expression
..\APP\My_font_HZ\GUI_FontHZ24.c(50): error: #67: expected a "}"
..\APP\My_font_HZ\GUI_FontHZ24.c(56): warning: #12-D: parsing restarts here after previous syntax error
compiling GUICharPEx.c...
..\APP\My_font_HZ\GUICharPEx.c(65): error: #20: identifier "GUI_pContext" is undefined
..\APP\My_font_HZ\GUICharPEx.c(106): warning: #223-D: function "W25QXX_Read" declared implicitly
..\APP\My_font_HZ\GUICharPEx.c(112): error: #136: struct "<unnamed>" has no field "f24addr"
..\APP\My_font_HZ\GUICharPEx.c(134): error: #20: identifier "GUI_pContext" is undefined
..\APP\My_font_HZ\GUICharPEx.c(183): error: #20: identifier "GUI_pContext" is undefined
compiling GUI_UC__EncodeNone.c...
但我已经按照教程添加了声明字体结构的代码,然后我在程序中也能定位到这里
//声明一种新的字体
#define GUI_FONTTYPE_PROP_USER \
GUIPROP_X_DispChar, \
GUIPROP_X_GetCharDistX, \
GUIMONO_GetFontInfo, \
GUIMONO_IsInFont, \
(GUI_GETCHARINFO *)0, \
(tGUI_ENC_APIList*)0
为什么会出现这些错误啊?请知道的大神指点下!!!我把源码上传了!
|
|