delorie.com/djgpp/faq/running/cant-run-coff.html   search  
I compile my program, but can't run the file built by the linker.

DOS doesn't know how to run unix-style COFF files which the GNU linker produces. That's what the extender is for. To run a COFF file called myprog, type

  go32 myprog args...
Alternatively, you can produce an .exe file by running coff2exe:
  coff2exe myprog
This appends a short real-mode stub to your program, which will call go32.exe automatically. Then you can run your program as any other DOS program.


  webmaster     delorie software   privacy  
  Copyright © 1995     Updated Feb 1995