![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JNI
老Fe同学
Telephony Android
展开
-
error: variable-sized object may not be initialized
编译报错int len= 6;unsigned char buf[len] = {0x4B, 0x30, 0x01, 0x00, 0x4A, 0x00}; //error: variable-sized object may not be initialized 原因C语言中,当使用变量来定义数组长度的时候,不能同时进行初始化赋值。解决方案unsigned ch...原创 2019-11-29 14:45:38 · 4700 阅读 · 0 评论 -
error: implicit declaration of function 'reg_dci' is invalid in C99
编译报错error: implicit declaration of function 'reg_dci' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret = reg_dci(&client_id);原因头文件未包含函数声明解决(1)查看出错的文件是否正确include头文件...原创 2019-11-29 14:23:44 · 258 阅读 · 0 评论