Page 1 of 1

[SOLVED] Error while adding another function.

Posted: Tue Aug 25, 2009 7:29 am
by gravity0
Hello everybody,
I am currently working on my kernel written in C and ASM (x86 32-bit) when I came across a problem while compiling a new kernel version (that sets up a GDT on startup)... I got that my main.o file (compiled from main.c, the kernel entry point) has a undefined reference to "monitor_write_dec" (used to print decimal numbers, monitor.c). I still have some other funcion in monitor.c and they are all working (such as "monitor_write", used to print a string).

I have attached a screen of my command prompt when I try to compile it.

I cannot come over this problem by myself since i am not able to see what's going on. Any help will be much appreciated.


Thanks in advice,

Mattias

EDIT: by commenting out the line with that function, everything is working fine!

Re: Error while adding another function.

Posted: Tue Aug 25, 2009 7:47 am
by apollo
source? :-)

Re: Error while adding another function.

Posted: Tue Aug 25, 2009 8:09 am
by gravity0
Solved... It was just a typo.... Damn it! #-o