STM32调试问题USR\main.c(58): error: #28: expression must have a constant value

日期:2021-05-23 23:50:58 人气:1

STM32调试问题USR\main.c(58): error: #28: expression must have a constant value

char *post[]={postT,postP}; 这样给post赋初值,初值需要为const类型,postP 和 postT 声明为const类型。如下:
const char postT[]={"",""};
const char postP[]={"",""};
    A+
热门评论