moondeck wrote:Yeah, i understood what it does, but there were some unexplained things there.
You are contradicting yourself there.
I'm not trying to offend you but I think you haven't got the faintest idea what that code is
actually doing or how the C language and compiler work.
GCC is actually your friend when it comes to errors, it usually is pretty clear about what mistakes you made and where you made them, you just need to understand them..
What omarrx024 said should have been clear to you before you started writing/copy-pasting code.
I strongly suggest you read
http://wiki.osdev.org/Beginner_Mistakes and catch up on some theory so you understand
why and
how things are the way they are.
OSdev is hard but doable. just don't give up