error: #256: invalid redeclaration of type name "u8" (declared at line 55 of "D:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h")
时间: 2023-09-04 14:13:44 浏览: 591
根据引用和引用,错误代码#256表示类型名称"uint32_t"在datatypes.h文件的第20行处被无效地重新声明。而类型名"u8"在错误消息中也被重新声明,但这个类型名在stdint.h文件的第55行已经声明过了。因此,错误提示显示了类型名称"u8"的无效重新声明。为了解决这个问题,你可以注释掉或直接删除"u8"的重新定义。你还可以检查一下是否还有其他地方对"u8"进行了重新声明或定义。这样应该能解决错误代码#256的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [stm32MDK错误码(不定时更新)](https://blog.csdn.net/I_O_fly/article/details/112184004)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [STM32——Keil5的编译警告和错误订正](https://blog.csdn.net/yongliang_huang/article/details/88100744)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文