gpt4 book ai didi

C错误: Storage size of ‘lcd’ isn’t known

转载 作者:行者123 更新时间:2023-11-30 14:27:08 27 4
gpt4 key购买 nike

编译时出现以下错误:

MenuNavigationApp.c:58: error: array type has incomplete element typeMenuNavigationApp.c:43: error: storage size of ‘lcd' isn't knownMenuNavigationApp.c:338: error: too many arguments to function ‘ucSCPowerUp'

Here is my code:

int ZealMain()
{
UCHAR ucStatus;
struct DisplaySettings lcd ; /* line 43 */
UCHAR seq[]={'0','1','2'},ucKey=0;
BOOL bStatus;
UCHAR ucGetStringBuf[3];
UINT ucGetStringBuf1,uiTimeOut=0;
UINT ucGetStringBuf2;
lcd.bFullScreen=1;
lcd.ucStartPoint=5;
lcd.ucEndPoint=50;
lcd.bSelectOption=1;
lcd.bModeSelect=0;
lcd.ucSelectedItem=0;

int uitimeout=30;

struct FunctionInfo Zealperiph[]={ /* line 58 */

/* Function information array */

{"LCD",1,"0",NULL,NULL},
{"DISPLAY CENTER",2,"00",vLcdDispCenter,NULL},
{"Display CIRCLE",2,"01",vLcdDispCircle,NULL},
/* a lot more of these ... */
{"PRINT DATA",2,"70",vPrintData,NULL}};

ucStatus=ucMenuNavigation("ZEAL INTERACTIVE",Zealperiph,33,0,uiTimeOut,&lcd);
if(ucStatus!=1)
bLCDDispCenter("Values are Incorrect",TIMES8_13);
}

void vPowerUp()
{
UCHAR ucAtrBuff[50],ucAtrlen,ucStatus;
ucSCPowerUp(ucAtrBuff, &ucAtrlen,0x27); /* line 338 */
vGetCardStatus();
}

最佳答案

哪里有定义

struct DisplaySettings lcd ?好像不见了。

关于C错误: Storage size of ‘lcd’ isn’t known,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8181500/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com