Author Topic: won't run  (Read 15923 times)

nobody

  • Guest
won't run
« 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?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: won't run
« Reply #1 on: August 20, 2009, 11:18:43 PM »
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