Click to See Complete Forum and Search --> : compile os on linux


majorek
July 7th, 2008, 07:42 AM
Hi!
I have a simple OS , which is wrote to compile with nasm and DJGPP , now i want to compile it on linux with nasm and gcc

Here are sources: http://binboy.sphere.pl/down.php?idmk=36

when I compile it on linux i have:
http://wklej.org/id/dfe6089ba6

Linux don't uses coff files, so in makefile I chanded:

nasm $*.asm -o $*.o -f coff

now is :

nasm $*.asm -o $*.o -f elf

But is still don't works
http://wklej.org/id/deabfd1046

How to do this ?

Bluefox815
October 1st, 2008, 09:29 PM
I think the source file needs to be last. Try this:

nasm (format) (options) (source)
nasm -f elf -o $*.o $*.asm

If you type "nasm -h" it will list all possible options and the syntax (at least, this is true for Windows).