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
Very Odd Error Message
Re:Very Odd Error Message
__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
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
Cheers For that, its very usefull can't wait for the next tutorials.
Peter
Peter
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Very Odd Error Message
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
(not yet tested, but theorically, it should be working