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 fprintf, assert, fopen, fclose, etc., you get this error message.
SOLUTION
Remove these function calls (or replace them with components from the Real-Time Library (RL-ARM).