I'm back with writing my OS, and I have problem. I compile the kernel.cpp file with g++, the loader.s file with as, and the nasmfunctions.s file with NASM, then link them together. I have it down to one error, and I can't figure it out. It says:
kernel.o(.eh_frame+0x11): undefined reference to '__gxx_personality_v0'
I looked in the object file and sure enough, the reference is there. How did it get there? Is there something I can do about it? Thanks!
The code for my file:
Code:extern "C"{ extern void _sayhi(); int _main ( void* mbd, unsigned int magic ) { _sayhi(); return 0; } }



LinkBack URL
About LinkBacks



So is there a way that I can get rid of this, or am I stuck with C? I'm not to good with the more advanced C principles, though many are similiar to C++, and the object orientation is really helpful.