Page 1 of 1

wrong with the linker

Posted: Mon Jul 10, 2006 9:27 pm
by xyjamepa
hi guys...
I've been trying to work with:
Bran's Kernel Development.A tutorial on writing kernels
Version 1.0 (Feb 6th, 2005)
By: Brandon Friesen
and when i tried to compile it with the batch file which
called build.bat i gut this error:
start.o:file not recognized: file format not recognized
and that happened after using the LD.
what is the problem?who can help me?
note:
i'm working under windows xp and
i used MinGW-3.1.1 as a compiler

Re:wrong with the linker

Posted: Tue Jul 11, 2006 9:28 am
by Candy
Did you search before you posted? I'm pretty sure at least 3 or 4 topics have come by about Bran's kernel tutorial and some compile problem very much like yours.

Re:wrong with the linker

Posted: Tue Jul 11, 2006 8:45 pm
by xyjamepa
yes i did but i didn't find any thing useful.
would you please guide me or put some links to useful
discussion about the problems with the compiler and
the linker because i got the same error many many times...
thanx

Re:wrong with the linker

Posted: Wed Jul 12, 2006 2:18 am
by Cjmovie
The smartest thing to do would be building a cross compiler. Theres a very easy to follow and in-depth tutorial on building a basic one in the Wiki (Click where it says "Mega-Tokyo.com" at the top to get there if need be).

If I recall, messing with the output formats got it to work. I beleive compiling the ASM files to a 'COFF' (option "-f coff") worked for someone, but I'm not quite sure if it wasn't another one. If you haven't already tried, use elf. Although I'm not sure how well it'd work with "coff" considering you're using MinGW, I beleive that djgpp was the one to mainly use coff...

However, this is all off the top of my head :-)