c++ code in kernel .. linking problems (___gxx_personality_v
Posted: Mon Nov 18, 2002 12:00 am
Hi All,
I'm trying to do a kernel in c++, and to test the concept i wrote a simple class that would simply print something on screen. Note that the classes are to be used internally and i'll expose the interface in C style. heres what i'v been trying to test do.
extern "C"
{
void kprintf( const char* p )
{
console cn.
cn.write( p );
// Or.
console::write ( pr );
}
};
but i get this ___gxx_personality_v0 undefined reference when linking code, what is this and how can i get rid of it ? it seems the compiler puts such a symbol in "eh_frame" section .. is there any way to suppress that thing ? or am i missing some concept here ??
thanks .
I'm trying to do a kernel in c++, and to test the concept i wrote a simple class that would simply print something on screen. Note that the classes are to be used internally and i'll expose the interface in C style. heres what i'v been trying to test do.
extern "C"
{
void kprintf( const char* p )
{
console cn.
cn.write( p );
// Or.
console::write ( pr );
}
};
but i get this ___gxx_personality_v0 undefined reference when linking code, what is this and how can i get rid of it ? it seems the compiler puts such a symbol in "eh_frame" section .. is there any way to suppress that thing ? or am i missing some concept here ??
thanks .