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

Author: Bruce Liu Posted on: 2020-10-26 20:50:28 Visited: 1523

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).




Tags:
retarget L6200E

相关主题:

留言信息:

......期待您的留言!


增加留言、提问或者评论,不用注册,匿名提交,你提交的信息经过审核后才会显示:


© 2008-2022 CunYouLu存有录博客 村友录 存游录 鲁ICP备08005943号