error: #513: a value of type "int" cannot be assigned to an entity of type "lv_obj_t *"
时间: 2024-04-25 13:25:29 浏览: 332
这个错误是由于将一个int类型的值赋给了一个lv_obj_t*类型的变量引起的。根据引用\[1\]和引用\[2\]的描述,这个错误通常发生在函数返回值无法赋值给对应变量的情况下。根据引用\[3\]的描述,可能的原因有两个:第一,函数返回值是int型,而变量是lv_obj_t*类型;第二,调用函数的文件没有包含函数的声明。要解决这个错误,你可以检查一下函数的返回值类型和变量的类型是否匹配,并确保在调用函数之前包含了函数的声明。
#### 引用[.reference_title]
- *1* [keil(MDK)中出现error: #513:](https://blog.csdn.net/u014717398/article/details/54316666)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [【踩坑】 a value of type “int“ cannot be assigned to an entity of type “TaskHandle_t](https://blog.csdn.net/weixin_46942417/article/details/117947672)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [类似Build Error: #513: a value of type "int" cannot be assigned to an entity of type "char *](https://blog.csdn.net/z497544849/article/details/54612568)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文