delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/16/05:43:25

From: kunst AT prl DOT philips DOT nl
Subject: Re: where does it go?
To: dewitte AT chasma DOT harvard DOT edu (Rob DeWitte)
Date: Fri, 16 Sep 1994 09:35:39 +0100 (METDST)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list)

Robert S DeWitte (dewitte AT chasma DOT harvard DOT edu) writes:
> 
> I hope that you can help me with a tiny problem (but very crucial).
> I have installed djgpp on my laptop (IBM) and it does compile under
> 
> gcc -c junk.c
> 
> to give object files, it will not produce output using
> 
> gcc junk.c
> 
> or
> 
> gcc junk.o
> 
> instead, just before compilation finishes, I get a message saying BAD
> COMMAND OR FILE NAME.
> 
> ANy suggestions?
> 

'gcc junk.c' should produce an executable file 'a.out'.
(that can be run using 'go32 a.out')

Try: gcc -v junk.c    (turns on 'verbose' flag)

This will give you more details.
Probably gcc can't locate 'ld.exe'.
Have you installed '\djgpp\bin\ld.exe' as well ?

You can use 'gcc junk.c -o junk' to specify an explicit output file.
After compilation, use 'coff2exe junk' to create a 'JUNK.EXE' file.


Pieter Kunst (kunst AT prl DOT philips DOT nl)

- Raw text -


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