delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/15/12:54:10

Date: Wed, 15 Sep 1999 14:30:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Artem Kuznetsov <ar_mail AT mail DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: Can't produce *.o files
In-Reply-To: <37DF6F31.466BC3BB@mail.ru>
Message-ID: <Pine.SUN.3.91.990915142853.28703F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 15 Sep 1999, Artem Kuznetsov wrote:

> I'm trying to compile .c file with gcc.exe. Everything is OK, but object
> file is absent (parameter -o file is present!!). What  do I wrong?

Are you sure you are invoking GCC correctly?  The right way is epxlained 
in the file README.1ST:

	gcc -c foo.c -o foo.o
or
	gcc foo.c -o foo.exe

The first example compiles a source file into an object file (you can 
omit the "-o foo.o" part in that case), the second example compiles and 
links a source file into an executable program.

- Raw text -


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