Problem linking(ld) c++ files
Posted: Sun Jun 01, 2008 4:31 am
Hello everybody, i'm new to OS development and I was reading some of the wiki tutorials and I managed to build a simple kernel in C, but I'm more used to OOP, so I want to build it in C++. But I got a problem when linking 2 object files compiled with g++, I'm doing like this:
ld -T linker.ld -o kernel.bin entry.o main.o system.o
entry.o is an object file compiled by nasm, main.o and system.o are object files compiled by g++. ld returns me this message: main.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
If I just link main.o and entry.o it links perfectly, I have no idea of what's happening.
ld -T linker.ld -o kernel.bin entry.o main.o system.o
entry.o is an object file compiled by nasm, main.o and system.o are object files compiled by g++. ld returns me this message: main.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
If I just link main.o and entry.o it links perfectly, I have no idea of what's happening.