Page 1 of 1

Error in compilation of kernel.

Posted: Fri Oct 15, 2010 9:02 am
by shikhin
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:

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
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.

Re: Error in compilation of kernel.

Posted: Fri Oct 15, 2010 8:41 pm
by piranha
This does not bode well for you. Seriously, those are pretty simple errors to fix. I don't know if you're having a bad day, or else you really need to practice your programming skills...

-JL

Re: Error in compilation of kernel.

Posted: Fri Oct 15, 2010 9:14 pm
by shikhin
Hi Piranha,

I was having a pretty bad day, to answer your question. First I injured my left arm, making typing difficult and leading to typos. Secondly, I forgot to give my school assignment, giving me a tight scolding. :cry: :shock:
Then, my computer crashed two times.
After all that, I couldnt make the code to compile. I felt like BANGING my head against the wall.

Re: Error in compilation of kernel.

Posted: Sun Oct 31, 2010 11:31 am
by KotuxGuy
Yeah, because we don't know you're having a bad day... and thus will treat you as if your're not :wink: