Very Odd Error Message

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
pskyboy

Very Odd Error Message

Post 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
whyme_t

Re:Very Odd Error Message

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

Re:Very Odd Error Message

Post by pskyboy »

No,

How do i turn exception handling flag off ?

Peter
whyme_t

Re:Very Odd Error Message

Post 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 :)
pskyboy

Re:Very Odd Error Message

Post by pskyboy »

Cheers For that, its very usefull can't wait for the next tutorials.

Peter
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Very Odd Error Message

Post 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 :)
Post Reply