www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/10/06:29:15

Date: Tue, 10 Feb 1998 13:27:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Robb Beggs <rjbeggs AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Arrgh!
In-Reply-To: <01bd35a9$d696e3c0$86f0a3c6@tracybuc>
Message-ID: <Pine.SUN.3.91.980210132425.12622J-100000@is>
MIME-Version: 1.0

On Mon, 9 Feb 1998, Robb Beggs wrote:

> My first
> program compiled successfully. But all is not well. I thought when a
> program is compiled a <filename>.obj is created. I couldn't find one.

First, object files produced by GCC are called .o, not .obj, unless yo 
explicitly say something like "gcc -o foo.obj" (which a Bad Idea).

And second, when you compile and link in one step, all the object files 
are deleted by GCC after the linker exits.  GCC assumes that when you 
compile and link in one step, you don't want the object files at all, 
only the executable program.

- Raw text -


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