This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Redirect stdout in C++

Hi everybody,

I want to redirect the standard output, but redirection does not work. I used the following retraget.c file in the RTX_Blinky example, where I included a real bunch of C++ code from another (host software) project.

http://www.keil.com/support/man/docs/gsac/gsac_retargetcortex.htm

Linker output:
--------------

Build target 'STM32F207 Flash lite'
linking...
.\Flash\Blinky.axf: Error: L6200E: Symbol __stderr multiply defined (by stdio_streams.o and retarget.o).
.\Flash\Blinky.axf: Error: L6200E: Symbol __stdin multiply defined (by stdio_streams.o and retarget.o).
.\Flash\Blinky.axf: Error: L6200E: Symbol __stdout multiply defined (by stdio_streams.o and retarget.o).
.\Flash\Blinky.axf: Error: L6200E: Symbol fclose multiply defined (by fclose.o and retarget.o).
.\Flash\Blinky.axf: Error: L6200E: Symbol fseek multiply defined (by fseek.o and retarget.o).

What am I doing wrong?

Regards,

dch