Mail Archives: djgpp/1999/09/15/12:54:10
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 -