|
Header files generally contain function declarations (not definitions), structures, enums, and defined variables (i.e. #define ...)
They can also include other header files.
C files contain the definitions of the functions contained in the header as well as other functions (possibly static) declared and defined within the file.
When you compile with gcc, by default everything is linked for you, which is why you will sometimes get linker errors regarding unfound functions...
You can stop before the link stage as well as at other points.
man gcc will give you all the details.
__________________
"...and though our kids are blessed their parents let them shoulder all the blame."
- The Quiet Things That No One Ever Knows [BrandNew]
|