Page 1 of 1

[BareBones] error when linking

Posted: Fri Mar 27, 2009 7:08 pm
by stanko51
Hello,

I'm trying the Bare Bones tutorial but when I try link i get the error message :
"loader.s:(.text+0x14): undefined reference to 'kmain' ".

I use cygwin and I follow the exact instruction of the turorial.

Also I'm not sure about the choice of the compiler in cygwin : here is what i use:
gcc-core: C compiler
gcc-mingw-core:Mingw32 support headers and lib

Is that the right compiler to be used?

Does anyone have an idea where this error come from ?

Thank you !

Re: [BareBones] error when linking

Posted: Fri Mar 27, 2009 7:20 pm
by Styx
okay, in loader.s change all references to kmain to _kmain. windows adds an underscore to function names.

Re: [BareBones] error when linking

Posted: Fri Mar 27, 2009 7:32 pm
by stanko51
It worked ! Thank you for the tip !