How do I use different C++ header files in my kernel code?
Posted: Tue Jul 30, 2019 10:01 am
Hey.
In my kernel I wanted to use some header files from C++, for example vector. C++ compiles, but the ld linker throws an error.
Compile a kernel so:
Please help.
In my kernel I wanted to use some header files from C++, for example vector. C++ compiles, but the ld linker throws an error.
Compile a kernel so:
Code: Select all
nasm -f elf32 ./source/kernel.asm -o kasm.o
g++ -m32 -std=c++11 -c ./source/kernel.cpp -o kc.o
ld -m elf_i386 -T link.ld -o kernel-0 kasm.o kc.o