[BareBones] error when linking

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.
Post Reply
stanko51
Member
Member
Posts: 32
Joined: Fri Mar 27, 2009 6:58 pm

[BareBones] error when linking

Post 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 !
Styx
Posts: 2
Joined: Fri Mar 27, 2009 6:58 pm

Re: [BareBones] error when linking

Post by Styx »

okay, in loader.s change all references to kmain to _kmain. windows adds an underscore to function names.
stanko51
Member
Member
Posts: 32
Joined: Fri Mar 27, 2009 6:58 pm

Re: [BareBones] error when linking

Post by stanko51 »

It worked ! Thank you for the tip !
Post Reply