Link error : undefined reference to __gxx_personality_v0

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
delroth
Posts: 8
Joined: Sun Oct 01, 2006 3:29 am
Location: At my computer
Contact:

Link error : undefined reference to __gxx_personality_v0

Post by delroth »

Hello !

I trying to create an OS in ASM / C++, but when i compile my code, it gives me this error :

Code: Select all

VgaText.o:(.eh_frame+0x11): undefined reference to "__gxx_personality_v0"
I use namespace in my C++ code, and when I remove them, the OS compile fine. How can I prevent this error ?
joke
Member
Member
Posts: 56
Joined: Sat Jul 22, 2006 6:20 am

Post by joke »

I need someone to show me the things in life that I cant find
I cant see the things that make true happiness, I must be blind
delroth
Posts: 8
Joined: Sun Oct 01, 2006 3:29 am
Location: At my computer
Contact:

Post by delroth »

Thank you for this link ! It solves my problem : I disabled exceptions and RTTI, and it works !
User avatar
Daedalus
Member
Member
Posts: 74
Joined: Sun Oct 16, 2005 11:00 pm
Location: Australia
Contact:

Post by Daedalus »

Hrm, I know this wont help now, but when I was writing a crossplatform C++ game I got this same error, and all I did to fix it was place __gxx_personality_v0 as a symbol in the source somewhere.

Eg, at the end of main:
int __gxx_personality_v0;

That fixed my error, but I guess for OS development, the error means you need to tweak GCC a bit more.
delroth
Posts: 8
Joined: Sun Oct 01, 2006 3:29 am
Location: At my computer
Contact:

Post by delroth »

I already tried to do it, but when i had compiled, it had maked an 1M binary file.
Post Reply