Creature wrote:Can you show us your code? Try putting loader.o before kernel.o by the way (if your OS uses GRUB), because the file with the multi-boot header should be one of the first files to be linked.
I copied and pasted the code in
http://wiki.osdev.org/Bare_bones
updating cygwin now, as soon as it finishes Ill double check that its using the right gcc, I suspect that may be the problem as i586-elf-gcc doesnt exist in my install of gcc
well, even after updating cygwin I dont have that file, or the i686 equivelant, all I have is i686-pc-cygwin-gcc, which gives me the saem error as before.
whoever thought the hardest part of writing an OS would be setting up the toolchain...
turns out, a friend on another site suggested runnign nm kernel.o, and it turns out the compiler is mangling the name fo the function to __Z5kmainv, so after changing the references to that it linked just fine.