[uClinux-dev] porting CppTestKit woes

David McCullough davidm at snapgear.com
Wed Nov 7 17:47:07 EST 2001



Jivin Travis Griggs lays it down ...
> /home/davidm/work/m68k-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x6456): 
> undefined reference to `malloc'
> DumbConsole.elf2flt: In function `__deregister_frame_info':
> /home/davidm/work/m68k-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x649c): 
> undefined reference to `free'
> DumbConsole.elf2flt: In function `__deregister_frame':
> /home/davidm/work/m68k-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x64d8): 
> undefined reference to `free'
> DumbConsole.elf2flt: In function `__builtin_delete':
> /home/davidm/work/m68k-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/cp/new2.cc:54: 
> undefined reference to `free'
> collect2: ld returned 1 exit status
> make: *** [DumbConsole] Error 1
> 
> Can anyone give me any hints about what to go look at to get this 
> resolved? Like I say, with a slightly modified Makefile, it 
> compiles/runs for standard linux just fine.


Looks like you need to add '-lc' to the link line,  the uClinux compilers
are usually configuyred for embedded targets (ie., m68k-elf) and don't
include libraries by default.

Cheers,
Davidm

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm at snapgear.com  Fx: +61 7 3891 3630  825 Stanley St., W'gabba QLD 4102, Oz
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list