I´m a newbie and this I don´t understand.The compilation is done in two steps.If we have,lets say #include directive in a source file,then preprocessor phase adds the contents of a header file to a .CPP file.My question is:
-Does a header file contain the whole definition of some function?If so,why then linker links file to a library functions,afterall,header code has been already included in file at preprocessor phase.I´m hoping for someone to clarify me this.
I appreciate your help a lot!!!
-Does a header file contain the whole definition of some function?If so,why then linker links file to a library functions,afterall,header code has been already included in file at preprocessor phase.I´m hoping for someone to clarify me this.
I appreciate your help a lot!!!