Problem with "ld" while liniking

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Johnny

Problem with "ld" while liniking

Post 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 ???
Tim

Re:Problem with "ld" while liniking

Post 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++
Post Reply