Error in compilation of kernel.

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.
Post Reply
shikhin
Member
Member
Posts: 274
Joined: Sat Oct 09, 2010 3:35 am
Libera.chat IRC: shikhin
Contact:

Error in compilation of kernel.

Post 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.
Attachments
Kernel.tar.gz
(11.97 KiB) Downloaded 31 times
http://shikhin.in/

Current status: Gandr.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: Error in compilation of kernel.

Post 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
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
shikhin
Member
Member
Posts: 274
Joined: Sat Oct 09, 2010 3:35 am
Libera.chat IRC: shikhin
Contact:

Re: Error in compilation of kernel.

Post 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.
http://shikhin.in/

Current status: Gandr.
User avatar
KotuxGuy
Member
Member
Posts: 96
Joined: Wed Nov 25, 2009 1:28 pm
Location: Somewhere within 10ft of my favorite chubby penguin!

Re: Error in compilation of kernel.

Post 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:
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 :D )
Post Reply