s_**********@rediffmail.com (s.subbarayan) wrote:
# Dear all,
# How different is a header file from a library file in C?Under what
The header file is C code which defines the interface to the code.
The library is resource in some language, not necessarily C, which
implements the interface, and which is comprehensible to a loader/linker
for inclusion in your programs. A library will often be a translation
of C source file(s) which might be distributed with, or instead of, the
library file(s).
# circumstance u go for library and under what circumstance u go for
# header?Afaik,both have some declarations which can be called from a
There is no rule: it is up to you. You can write functions in header
files that get compiled into each source file that includes the header.
You can also put only the function prototype in the header and the
actual function in a library. It's up to you.
# source file.And what should I do if i want to build a library?Is it
# that jus setting the compiler option to be library makes u to create a
It depends on your system, Sometimes it's easy, sometime's hard, but
it rarely be the same on different systems.
--
SM Ryan
http://www.rawbw.com/~wyrmwif/
So....that would make Bethany part black?