C++ Kernel and Grub
Posted: Sat Jan 11, 2003 12:55 pm
I made a kernel called kernel_cpp.cpp
I use:
set DJGPP=C:\DJGPP\DJGPP.ENV
set PATH=C:\DJGPP\BIN;%PATH%
nasm -f aout kernel.asm -o kernel.o
gxx -c kernel_cpp.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions
ld -T link.ld -o kernel.bin kernel.o kernel_cpp.o
copy kernel.bin A:\kernel.bin
to compile it,but grub does not run it. Is the top the correct and how can you build bin files for grub.
I use:
set DJGPP=C:\DJGPP\DJGPP.ENV
set PATH=C:\DJGPP\BIN;%PATH%
nasm -f aout kernel.asm -o kernel.o
gxx -c kernel_cpp.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions
ld -T link.ld -o kernel.bin kernel.o kernel_cpp.o
copy kernel.bin A:\kernel.bin
to compile it,but grub does not run it. Is the top the correct and how can you build bin files for grub.