delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/11/00:03:48

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help for a newuser !!
Date: Thu, 10 Oct 1996 22:36:14 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 31
Message-ID: <325DDCCE.7D67@cs.com>
References: <325E264C DOT 2A2C AT helsinki DOT fi>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: hui <hui DOT zheng AT helsinki DOT fi>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

hui wrote:
> 
> I have downloaded EZ-gcc. And installed it on my computer according
> to instruction.Everything is alright.I edited a simple c
> program(Hello.c),and compiled it.  I got an a.out file.But what should I
> do next?I tried running a.out directly,but was told it is bad file or
> command?
> Help!!!

a.out isn't an executable.  Run 'coff2exe' on it (i.e., "coff2exe
a.out").  Then you'll get 'a.exe', which you can run.  :)

I don't remember if EZ-gcc uses version 1.x or version 2 of djgpp -
that's why I recommended 'coff2exe' instead of 'stubify'.  The v2
coff2exe is a batch file that invokes stubify.

BTW, if you like what you see, definitely consider downloading the full
djgpp v2 distribution - ftp to ftp.funet.fi and get the file
'ftp://ftp.funet.fi/mirrors/ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/readme.1st'
for instructions.  I don't know exactly what is or is not included in
EZ-gcc, but it's definitely not the whole shebang.  :)  (FYI, this isn't
an advertisement; djgpp is completely free.)

Good luck!

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| Plan:  To find ANYONE willing to |   http://www.cs.com/fighteer   |
| play Descent 2 on DWANGO!        | Tagline: <this space for rent> |
---------------------------------------------------------------------

- Raw text -


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