ARM Technical Support Knowledge Articles

ERROR: L6200E: SYMBOL __STDOUT MULTIPLY DEFINED

Applies to: RealView Linker

Answer


Information in this article applies to:


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

MORE INFORMATION

SEE ALSO

Article last edited on: 2010-03-23 09:16:37

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential