Undefined References
Posted: Thu Jun 16, 2005 6:16 pm
Hello. I'm working on building an operating system, and I'm following the Bran's Kernel Development Tutorial (located at http://www.osdever.net/bkerndev/index.php?the_id=90). I'm pretty much laying down the bricks now; I have a very long way to go before I have a POSIX-compatible multitasking microkernel operating system running all of these great applications.
Anyways, I have reached the stage to where I have written the output drivers in the tutorial. However, I have trouble compiling the kernel. Here is my output:
I know what the warnings mean, but I don't know what "undefined reference to `___'" means.
My code is attached to a zip file since it is too long to put in this post.
I am new to all of this, so I don't know what is going wrong. Thanks in advance.
Anyways, I have reached the stage to where I have written the output drivers in the tutorial. However, I have trouble compiling the kernel. Here is my output:
Code: Select all
Now assembling, compiling, and linking your kernel:
scrn.c: In function `scroll':
scrn.c:24: warning: passing arg 1 of `memcpy' from incompatible pointer type
scrn.c:24: warning: passing arg 2 of `memcpy' from incompatible pointer type
start.o(.text+0x2d): In function `stublet':
: undefined reference to `_main'
scrn.o(.text+0x45): In function `scroll':
: undefined reference to `memcpy'
scrn.o(.text+0x259): In function `putch':
: undefined reference to `memcpy'
Done!
My code is attached to a zip file since it is too long to put in this post.
I am new to all of this, so I don't know what is going wrong. Thanks in advance.