The problem is the red line. The linker isn't able to manage it so it tries to link it in every section. How to solve this problem? Now I'm using it out from the class but it makes the code less readable
I don't think this belongs in OS Development, but rather in General Programming.
This is something you should have known (preferably you should have known it all along because you known your language, but otherwise through a quick Google).
This question has been asked a couple times before, so you should be able to find it by performing a forum search.
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
I knew. Simply I forgot to initialize the value, it could happen, everybody does mistakes.
If I knew my mistake I can have looked for on google, but how can you do a search without knowing what to search?
google has a nice trait of showing interesting things when you feed it the error message...
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
The error was something like, bss section limit reached, from 0xf8000 up to ....., and than all the many reference failed. How can I had related the error limit reached with a problem of this kind?
It doesn't matter, If you want you could remove this post, now the code works. Getting angry for this is no-sense