NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: nobody on August 20, 2009, 09:56:06 PM
-
I have this program I created and I'm trying to made it run. I type in:
nasm -f test.asm -o test.obj test.asm gcc test.exe test.obj
it won't run. why is that?
-
Lots of reasons, possibly. What *does* it do?
For one thing, "-f test.asm" is not a valid output format. The comination of "gcc" and ".obj" suggests you're using MinGW gcc, or Cygwin - you want "-f win32" - or you're using djgpp - use "-f coff". You probably want "-o test.exe" on the command line to gcc, not just "test.exe", also.
If those are just typos, or that doesn't help, we may need to delve into the contents of "test.asm". Or at least know what the symptoms are - "won't run" isn't much help...
Best,
Frank