[En-Nut-Discussion] Multiple definition of free and malloc

Stephan Uhle stephan.uhle at alcatel.de
Wed Jun 15 14:30:47 CEST 2005


Thanks for the help, writing my own realloc solved the problem.
I still can't send data via serial port with printf, but that shall
be the topic of a different thread! ;o)

Stephan

On Tue, 2005-06-14 at 16:31, Harald Kipp wrote:
> I see. No, realloc is not yet available with Nut/OS.
> If it's used, realloc from avr-libc is linked in. Possibly
> they use the malloc in the same linker module and bang,
> we have multiple mallocs.
> 
> For now, you can write your own realloc.
> 
> Be aware, that Nut/OS C++ support is limited. Not many
> people use it and it may introduce problems. I'm also
> not sure, if all function prototypes are C declared.
> 
> Harald




More information about the En-Nut-Discussion mailing list