Mail Archives: djgpp/1998/02/10/06:29:15
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 -