Page 1 of 1

Link error : undefined reference to __gxx_personality_v0

Posted: Sun Oct 01, 2006 3:34 am
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 ?

Posted: Sun Oct 01, 2006 7:47 am
by joke

Posted: Sun Oct 01, 2006 8:11 am
by delroth
Thank you for this link ! It solves my problem : I disabled exceptions and RTTI, and it works !

Posted: Sun Oct 01, 2006 9:29 am
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.

Posted: Sun Oct 01, 2006 10:02 am
by delroth
I already tried to do it, but when i had compiled, it had maked an 1M binary file.