delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/10/03:52:03

Date: Thu, 10 Oct 1996 09:39:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Matt Harlow <doormatt AT bluenet DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: a.out
In-Reply-To: <325AC0CF.3AE0@bluenet.net>
Message-Id: <Pine.SUN.3.91.961010093334.10390Q-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019