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

Harald Kipp harald.kipp at egnite.de
Tue Jun 14 10:34:28 CEST 2005


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

At 09:48 14.06.2005 +0200, you wrote:

>avr-gcc -mmcu=atmega128 -Wl,--defsym=main=0,-Map=./obj/myprog.map,--cref 
>-L~/nut/lib -nostdlib obj/*.o \
>~/avr/gcc/avr/lib/avr5/crtm128.o ~/nut/lib/nutinit.o -lc -lgcc -lnutos 
>-lnutcrt -lnutdev -lnutfs -lnutnet \
>-lnutos -lnutpro -lnutcpp -lnutcrt -lc -o obj/myprog.elf




More information about the En-Nut-Discussion mailing list