Error: L6200E: Symbol __stdin multiply defined by stdio_streams.o 分析与解决

Error: L6200E: Symbol __stdin multiply defined (by stdio_streams.o and retarget.o).
Error: L6200E: Symbol __stdout multiply defined (by stdio_streams.o and retarget.o).
Not enough information to list image symbols.
Not enough information to list the image map.
 

中文翻译

原因

retarget.c文件允许您使用简单的I/O函数,如printf或getline。当您的应用程序使用其他复杂函数(如fprintf、assert、fopen、fclose等)时,您将收到以下错误消息。

解决方案

删除这些函数调用(或用实时库(RL-ARM)中的组件替换它们。

 

refer:

https://www.keil.com/support/docs/3279.htm

https://developer.arm.com/documentation/100074/0611/linker-errors-and-warnings/list-of-the-armlink-error-and-warning-messages

 

 

PROBLEM

I use the RealView compiler to write my embedded application and added the retarget.c file to route the I/O routines to a physical UART interface.

But when I build the project, I get the following error:

Error: L6200E: Symbol __stdout multiply defined (by retarget.o and stdio.o).

What causes this error?

CAUSE

The retarget.c file allows you to use simple I/O functions such as printf or getline. When your application uses other complex functions such as fprintfassertfopenfclose, etc., you get this error message.

SOLUTION

Remove these function calls (or replace them with components from the Real-Time Library (RL-ARM).

 

http://www.cunyoulu.net/ciblog/index.php/posts/44

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值