Mail Archives: djgpp/1996/10/10/03:52:03
On Tue, 8 Oct 1996, Matt Harlow wrote:
> it to run. now it compiles and gives an a.out file. however when i try
> to run it it says "bad command or filename" i copied it to a *.exe file
> and it hangs, or if i am in windows at the time it tells me that it has
> screwed the system....
> is there something that i can do to remedy this? HELP!
You should download and read the file `v2/readme.1st' (from the same place
you got DJGPP), it explains how to invoke gcc to produce DOS .exe
programs. The file `a.out' produced by you is a COFF executable which
DOS doesn't inderstand; copying it into .exe doesn't change the contents
of the file, so it won't help.
Btw, there should be a.exe file immediately after the linking, even
before you copy `a.out' into it; that file you *can* run. But don't get
accustomed to this; use the techniques explained in readme.1st.
- Raw text -