View Single Post
Old 08-02-2005, 01:13 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Include files are usualy named .h which is the header files that you use in order to tell other parts of your program what functions are available and how to use them.
I havn't got time right now to fully explain it, but later today I will describe it more specific and give some examples, for now the one thread that comes to mind, would be this one with my last post extending it to the fullest.
Basicaly you make a matching header (.h) file to predefine the functions available for everyone to use, then place the header aswell as the .c/.cpp file in the same folder as the project, include the header file by using " to surround it instead of <> precompile the provided .cpp file following the header into a .o file, then precompile your end program into a .o file, and link them all together into the executable.
It helps if you fully understand the preprocessor and what it does.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote