找回密码
 立即注册

QQ登录

只需一步,快速开始

开启左侧

[M051] 请教Mini51DE_Series_BSP_CMSIS_v3.02.000 为何在IAR中编译报错

[复制链接]
匿名  发表于 2018-12-8 09:05:18 |阅读模式
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


IAR中有对这个结构作定义吗?

回复

使用道具

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU