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.
Hi, I was wondering what's wrong with this code. It compiles fine, but I get the error - kernel.c:(.text+0x1d): undefined reference to `memset'. I'm assuming it has something to do with including libraries..
Unless you wrote your 'memset', you just made beginner mistake #1.
Don't feel too bad. If you did write your own memset, make sure you're linking with the object file that contains it.
If that did compile your setup is wrong already. You should not be able to include files that you have not written yourself.
"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 ]
If that did compile your setup is wrong already. You should not be able to include files that you have not written yourself.
That's the reason it did compile - the function is declared in string.h, but he hasn't implemented it, so he gets a linker error instead of a compiler error.