Date: Thu, 10 Oct 1996 09:39:38 +0200 (IST) From: Eli Zaretskii To: Matt Harlow Cc: djgpp AT delorie DOT com Subject: Re: a.out In-Reply-To: <325AC0CF.3AE0@bluenet.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.