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

Stephan Uhle stephan.uhle at alcatel.de
Tue Jun 14 16:18:25 CEST 2005


Hi Harald,

I still get the multiple definition error. I've started adding the
object-files one by one to the link command and found out that this
error occurs when I'm linking a object file that uses realloc.

Mustn't I use realloc?


Btw, I need -lnutcpp because I'm using C++. 

stephan

On Tue, 2005-06-14 at 10:34, Harald Kipp wrote: 
> Hello Stephan,
> 
> All Nut/OS libs must come first. I do not think you'd need to
> specify -lc -lgcc. But if, put it at the end only. And do you
> really need -lnutcpp? I don't think so.
> 
> How about
> ~/nut/lib/nutinit.o  -lnutnet -lnutpro -lnutfs -lnutos -lnutdev \
> -lnutnet -lnutcrt -o obj/myprog.o
> 
> Any reason why you don't use the same Makefiles as the sample
> applications?
> 
> Harald



-- 




More information about the En-Nut-Discussion mailing list