Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Unix (http://www.go4expert.com/forums/unix-forum/)
-   -   header files (http://www.go4expert.com/forums/header-files-t6140/)

buddy 1Sep2007 00:37

header files
 
how a header file is included in the file(Path .Where exactly the definitions of the functions and variables declared in a header file will be ???? in unix.Plz clarify this one too,till now i didnt got answer.!! :confused:

shabbir 1Sep2007 07:05

Re: header files
 
What programming language you are talking it for. It looks like a C-C++ issue.

buddy 4Sep2007 18:27

Re: header files
 
Quote:

Originally Posted by shabbir
What programming language you are talking it for. It looks like a C-C++ issue.


Yes, I want to know how the header files are linked (In C,C++),where will be the definations of the declarations in the header files will be??..how to explain this in the interview.Thanks in advance.

buddy 5Sep2007 00:50

Re: header files
 
hi shabbir,

I want to know for C,C++ programming language, how the header files are inked where will be its definitions be defined??? how to explain it in interviews.

shabbir 5Sep2007 08:02

Re: header files
 
Header files help the compiler to know that the function exists and the lib files help them find out where on the program is the function located. The linking happens after the compiler and so if you do not have the lib files you will get the linker errors.


All times are GMT +5.5. The time now is 05:30.