Mail Archives: djgpp/1997/04/21/12:21:14
/ cs19 AT cityscape DOT co DOT uk (BDC Client Team) wrote:
| Can anyone help me with mulitple sources?
|
| I understand about compiling different sources to .o files and then
| linking the .o's to a .exe, but I am unsure about #includes.
|
Simply, the world isn't only .c and .o's..
We have also .h's (h for header) that contains descriptions of the
stuff in the associated file (.o or .a).. these descriptions
(definitions) is needed by the compiler so he knows what stuff lies in
the files you will link together to an .exe-file.
And then there also is .a-files, libraries (a as in archive(?)) which
is basically a bunch of .o-files, for example libAllegro.a, and used
through something like -lAllegro at linking stage.
Shortly include-files contains definitions of functions/variables that
the compiler needs (the definitions) at compile-time. These
functions/variables is then later on put into the .exe file at linking
time.
Uhm.. Well hopefully I can shred some light, a hint is to get a good
book about c/c++ and get more info from there.
/Andy
- Raw text -