标题: 请教Mini51DE_Series_BSP_CMSIS_v3.02.000 为何在IAR中编译报错 [打印本页] 作者: 匿名 时间: 2018-12-8 09:05 标题: 请教Mini51DE_Series_BSP_CMSIS_v3.02.000 为何在IAR中编译报错 IAR 8.32
编译时报如下错误:
Error[Pe235]: variable "__stdout" was declared with a never-completed type Mini51DE_Series_BSP_CMSIS_v3.02.000\Library\StdDriver\src\retarget.c 43
Error[Pe235]: variable "__stdin" was declared with a never-completed type Mini51DE_Series_BSP_CMSIS_v3.02.000\Library\StdDriver\src\retarget.c 44
但在Keil中则正常
查找后发现原因应该为如下代码定义的问题,但不清楚为何要如此定义
#if !(defined(__ICCARM__) && (__VER__ >= 6010000))
struct __FILE { int handle; /* Add whatever you need here */ };
#endif