Page 1 of 1

Very Odd Error Message

Posted: Mon Dec 02, 2002 1:35 pm
by pskyboy
Hey Guys

I have a c++ kernel and it will link fine. Well this is if i don't call my clear screen function. If i call my clear screen function and try and link it it throws up the error message.

kernel.o(.eh_frame+0x11):kernel.cpp: undefined reference to '___gxx_personality_v0'

Has anyone got any ideas why this happens.

Peter

Re:Very Odd Error Message

Posted: Mon Dec 02, 2002 2:12 pm
by whyme_t
__gxx_personality_v0 is a builtin function used in Exception handling. Did you compile the c++ code with the clearScreen with Exception Handling flagged off?

Re:Very Odd Error Message

Posted: Mon Dec 02, 2002 2:36 pm
by pskyboy
No,

How do i turn exception handling flag off ?

Peter

Re:Very Odd Error Message

Posted: Mon Dec 02, 2002 3:03 pm
by whyme_t
I've started a few tutorials covering C++ in the Kernel. Check it out, http://www.invalidsoftware.net/os/. Let me know if you found it useful, or lacking :)

Re:Very Odd Error Message

Posted: Mon Dec 02, 2002 3:29 pm
by pskyboy
Cheers For that, its very usefull can't wait for the next tutorials.

Peter

Re:Very Odd Error Message

Posted: Mon Dec 02, 2002 3:44 pm
by Pype.Clicker
an alternative would be to link statically with the runtime language (C++) library (libgpp.a, for instance, a.f.a.i.r.), so that the compiler-specific functions are present ...

(not yet tested, but theorically, it should be working :)