Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   difference between header file and library file (http://www.go4expert.com/forums/difference-header-file-library-file-t538/)

bothra_jain 24Dec2005 15:24

difference between header file and library file
 
May anyone tell me about the difference between header file and library file in c/c++

shabbir 24Dec2005 20:08

Re: difference between header file and library file
 
You have posted in the wrong forum and I have moved the thread to the correct forum.

Normally in header file the function / Class definitions exist and in lib files the implementation of the functions reside.

bothra_jain 25Dec2005 10:58

Re: difference between header file and library file
 
Thanks 4 help. may u tell me in depth about it?

shabbir 25Dec2005 14:16

Re: difference between header file and library file
 
Depth about it can be explained with an example.

Lets we define a Class A in file a.h and its function definition lies in a.cpp

Then when you compile and create the library the definition of function lies in the .h files and the implementation lies in the lib files.

Like say iostream.h files hold the function signatures of the function and the corresponding lib files has the actual implementation of the function.


All times are GMT +5.5. The time now is 21:09.