-1
第9行顯示錯誤「丟失分隔符」。但我給了空間代替標籤。錯誤在哪裏?代碼中出現錯誤?
#sudo apt-get install g++ binutils libc6-dev-i386
GCCPRAMS = -m32 -fno-use-cxa-atexit -fno-builtin -fno-rtti -fno-exception -fno-leading-underscore
ASPARAMS = --32
LDPARAMS = -melf_i386
objects = loader.o kernel.o
%.o: %.cpp
gcc $(GCCPRAMS) -c -o [email protected] $<
loader.o: loader.s
as $(ASPARAMS) -o [email protected] $<
mykernel.bin: linker.ld $(objects)
ld $(LDPARAMS) -T $< -o [email protected] $(objects)
install: mykernel.bin
sudo cp $< /boot/mykernel.bin
mykernel.iso: mykernel.bin
mkdir iso
mkdir iso/boot
mkdir iso/boot/grub
cp $< iso/boot/
echo 'set timeout=0' > iso/boot/grub/grub.cfg
echo 'set default=0' >> iso/boot/grub/grub.cfg
echo '' >> iso/boot/grub/grub.cfg
echo 'menuentry "My Operating System" {' >> iso/boot/grub/grub.cfg
echo 'multiboot /boot/mykernel.bin' >> iso/boot/grub/grub.cfg
echo 'boot' >> iso/boot/grub/grub.cfg
echo '}' >> iso/boot/grub/grub.cfg
- 當我通過鍵入使顯示錯誤在命令外殼運行此,生成文件:9:*缺少隔板。停止。**。我刪除了文件「makefile」中的空間,但仍顯示錯誤
- 顯示「-m32 -fno-use-cxa-atexit -fno-builtin -fno-rtti -fno-exception -fno-leading-underscore」不是命令。如何安裝它
它以標籤開頭 –