www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/03/13:24:39

Date: Wed, 3 Feb 1999 17:37:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Christian Henz <chrhenz AT uni-paderborn DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Sourcefile corrupted !
In-Reply-To: <Pine.GSO.3.96.990203155109.6903C-100000@young.uni-paderborn.de>
Message-ID: <Pine.SUN.3.91.990203173610.17453A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Wed, 3 Feb 1999, Christian Henz wrote:

> Yesterday I wrote a small prog and
> compiled it using the -s switch. I have used it before and never had any
> problems but yesterday I had to realize that my source-file was messed up.
> It wasn`t readable anymore, about 44K large while the .o file was only 4K
> large.

This usually happens when you by mistake type something like this:

		gcc -o foo.c foo.c bar.c ...

The "-o foo.c" part is the problem: it nukes the source file, overwriting 
it with the executable.

- Raw text -


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