Mail Archives: djgpp/1996/10/11/00:03:48
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 -