Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
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:
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.
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...
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.
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.
Yeah, because we don't know you're having a bad day... and thus will treat you as if your're not
Give a man Linux, you feed the nearest optician ( Been staring at the PC too long again? ).
Give a man OS X, you feed the nearest NVidia outlet ( I need more GPU power!! )
Give a man Windows, you feed the entire Tylenol company ( Self explanatory )