Error in compilation of kernel.
Posted: Fri Oct 15, 2010 9:02 am
Well I am back all AGAIN. Maybe some of you may be tired, to see my umpteenth problem. But still, well I think you guys can solve the problem for me again. So my problem is I am trying to make a kernel, with a GDT and a IDT (32 ISR). While making them I get the following error code:
Now the division by error is fine, as I did it on purpose, and also the struct multiboot is fine. But I dont know about the other problem, Error 1. I have attached the source.
Code: Select all
cc -nostdlib -nostdinc -fno-builtin -fno-stack-protector -c -o Main.o Main.c
In file included from Main.c:6:
Gdt.h:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’
Main.c:8: warning: ‘struct multiboot’ declared inside parameter list
Main.c:8: warning: its scope is only this definition or declaration, which is probably not what you want
Main.c: In function ‘main’:
Main.c:19: warning: division by zero
make: *** [Main.o] Error 1