Mail Archives: djgpp/1999/06/15/14:05:24
In article <929403957 DOT 546 DOT 59 AT news DOT remarQ DOT com>, Al Morgan
<muaddib AT proaxis DOT com> writes
>The reason you don't get a .EXE file when you compile it this:
>when you compile the program, it first compiles it to a .O file, then
>/links/ the .o file to make an .EXE.
>So you want to "Make" instead of "Compile", making will compiler, link, and
>all that stuff, leaving you with a .EXE.
>
>This is used for... well, I'm not sure exactly how object files are used,
>but I know when you make large programs using makefiles, you get a bunch of
>them.
>
>
The .o file is the object code, when using a large multifile project it
is useful to compile to these separately and then to link them all, that
way if you get linker errors you only have to re-compile the suspect
file, not the lot. If you copile straight to an exe you have to do the
lot again.
--____ ___ _ _ _____ ____
| __ \ / _ \ | | | ||_ _|| __ \ E-mail: nebuchadn AT quayles1 DOT demon DOT co DOT uk
|| \ || [_] || |_| | | | || \ | ICQ: 13313977
||__/ || | | | \ / _| |_ ||__/ | Website: <NOT UP YET!>
|____/ |_| |_| \_/ |_____||____/ Phone: 1100000101010110101001100011111
C Programmer, Beer drinker. Life Sucks!
- Raw text -