Date: Wed, 3 Feb 1999 17:37:59 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Christian Henz cc: djgpp AT delorie DOT com Subject: Re: Sourcefile corrupted ! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.