Page 1 of 1

Problem with "ld" while liniking

Posted: Tue Dec 23, 2003 3:38 am
by Johnny
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 and i am going to build over it but i could link these two files
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:Problem with "ld" while liniking

Posted: Tue Dec 23, 2003 5:22 am
by Tim
It means you've tried to use C++. If you want to do this, you will need to write a certain amount of support code to get things to link.

What you could do is either:
-- write all your code in C, not C++
-- link against libgcc.a, or follow the instructions in Writing a Kernel in C++