Argh! Linker and NASM
Posted: Mon Jul 28, 2003 12:41 pm
Hey there, im having some ungood things happening when compiling with NASM and then doing a link.
Basically i have 2 asm files (boot.asm, init.asm) init.asm calls the kernel.c init_os() function with EXTERN.
However when compiling with NASM i get an error saying that bin format does not support external refrences. The only other options i get are obj (dos), a linux format. And a win32 format. Not a plain OS independant option
Then, after compiling together (the bootsecotr compiles no problems, i use djgpp "ld.exe" to link the 2 files. Which spits it out and says. "boot.bin - unrecognised format"
can somebody please help me out here. Doing all this commandline compiling/linking is really annoying me right now.
Thanks in advance.
Basically i have 2 asm files (boot.asm, init.asm) init.asm calls the kernel.c init_os() function with EXTERN.
However when compiling with NASM i get an error saying that bin format does not support external refrences. The only other options i get are obj (dos), a linux format. And a win32 format. Not a plain OS independant option
Then, after compiling together (the bootsecotr compiles no problems, i use djgpp "ld.exe" to link the 2 files. Which spits it out and says. "boot.bin - unrecognised format"
can somebody please help me out here. Doing all this commandline compiling/linking is really annoying me right now.
Thanks in advance.