delorie.com/djgpp/faq/running/exe-hangs.html   search  
I compile my program, but when I run the .exe it hangs.

Most likely, you did this:

  gcc foo.c -o foo.exe
This doesn't create a real .exe file. That's like renaming your phone directory file to an .exe and expecting it to run. You must use the coff2exe program to convert the output of gcc to a real executable:
  gcc ... -o foo
  coff2exe foo
This produces foo.exe you can run like any other DOS program.

  webmaster     delorie software   privacy  
  Copyright © 1995     Updated Feb 1995