Page 1 of 1

ld Error Please Help

Posted: Fri Dec 26, 2003 12:00 am
by johnnyde
Hi

I am trying to use this command in linux. I don't know much about 'ld'
so i am not able to interpret this error message.
This is a small basic opertaing system (fritz os)
please help

Command
ld -Ttext=0x9000 -o ../source/temp/kernel32 ../source/object/kernelasm.o ../source/object/kernel32.o -e 0x0
Error
../source/object/kernel32.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'

Thanks in Advance
Johnny

RE:ld Error Please Help

Posted: Fri Dec 26, 2003 12:00 am
by carbonBased
It means that the linker can't find a symbol that the GCC C++ runtime support relies on.

It's Fritz a C++ kernel?  If not, compile with gcc, not gxx or g++

If it is actually a C++ kernel, then you'll need some command line switches for when actually compiling the source, such as:

-ffreestanding -fno-builtin -nostdlib -nostdinc -fno-rtti -fno-exceptions -fno-inline -O0 -nostartfiles

Cheers,
Jeff