delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/01/01:04:49

Date: Mon, 1 Jan 1996 07:58:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Nexus Tech Support <jimb AT micro DOT internexus DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: DJGPP v2 compile problems

On 31 Dec 1995, Nexus Tech Support wrote:

> I set the environment correctly...  I have all the files necessary, I 
> compiled hello.c once and it worked but I cannot get it to compile 
> again...  It chuggs along without any error messages and then gives me 
> the prompt back but there is no a.out or hello.exe or whatever...  What 
> am I doing wrong???  I typed gcc hello.c 

What happens if you type `gcc -o hello hello.c'?  It should produce two
files: hello and hello.exe.  If it doesn't, try `gcc -v -o hello hello.c'. 
Gcc will then print all the compiler passes it invokes with all their 
arguments, which should help you understand what goes wrong.  You can 
also use the `-save-temps' switch to gcc, which will cause it to not 
delete temporary files (.i and .s) it produces during compilation, to try 
and see what's wrong with them.

Does `gcc -c hello.c' produce hello.o?  If so, maybe something is wrong 
with the link stage.

- Raw text -


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