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;
}
}