nyszx 发表于 2012-2-2 21:20:28

ucos+ucgui3.98编译出现错误求助

开启内存支持,编译出现:
Source\uCGUI\Core\LCD_API.c(91): error:#144: a value of type "const struct tLCDDEV_APIList_struct *" cannot be used to initialize an entity of type "tLCDDEV_FillPolygonAA *"
错误,但是不知道为什么

clingos 发表于 2012-2-3 08:30:03

tLCDDEV_APIList_struct和3.90版本的不一样。

MadCat 发表于 2012-2-3 10:32:25

数据类型不对了看看是不是给值错了

nyszx 发表于 2012-2-10 01:23:26

回复【1楼】clingos
-----------------------------------------------------------------------
这是3.98提供的
struct tLCDDEV_APIList_struct {
tLCDDEV_Color2Index*      pfColor2Index;
tLCDDEV_Index2Color*      pfIndex2Color;
tLCDDEV_GetIndexMask*       pfGetIndexMask;
tLCDDEV_DrawBitmap*         pfDrawBitmap;
tLCDDEV_DrawHLine*          pfDrawHLine;
tLCDDEV_DrawVLine*          pfDrawVLine;
tLCDDEV_FillRect*         pfFillRect;
tLCDDEV_GetPixelIndex*      pfGetPixelIndex;
tLCDDEV_GetRect*            pfGetRect;
tLCDDEV_SetPixelIndex*      pfSetPixelIndex;
tLCDDEV_XorPixel*         pfXorPixel;
tLCDDEV_SetLUTEntry*      pfSetLUTEntry;
tLCDDEV_GetDevFunc*         pfGetDevFunc;
#if GUI_SUPPORT_MEMDEV
    tLCDDEV_FillPolygon*      pfFillPolygon;
    tLCDDEV_FillPolygonAA*    pfFillPolygonAA;
    const tLCDDEV_APIList*    pMemDevAPI;
    unsigned                  BitsPerPixel;
#endif
};

nyszx 发表于 2012-2-10 02:23:52

它多了个tLCDDEV_GetDevFunc*         pfGetDevFunc; 而lcd_API.c中没有,导致报错

raojialong1988 发表于 2012-6-7 20:47:22

就是有这个问题
页: [1]
查看完整版本: ucos+ucgui3.98编译出现错误求助