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 *"
错误,但是不知道为什么 tLCDDEV_APIList_struct和3.90版本的不一样。 数据类型不对了看看是不是给值错了 回复【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
}; 它多了个tLCDDEV_GetDevFunc* pfGetDevFunc; 而lcd_API.c中没有,导致报错 就是有这个问题
页:
[1]