Your compiler/OS comes with a set of libraries already.  There are default
library and include paths for compiler, and include path tells compiler
where header files are while library paths tell compiler where libraries
are.  When you include stdio.h and use functions from there, then how does
compiler know where to find actual implementation of those functions?  Well
it will be one of the libraries in the library folder or elsewhere that
compiler knows where to look for during the linking stage.

I suggest a good exercise for learning these concepts is to build your own
static and dynamic libraries and try to link against them.  That is, create
a set of header files for your library then use the headers from another
program you make, while figuring out how to link properly against your
library.  It is relatively easy to do this, at least for gcc/g++, just
examine their options.
 - Lev Neiman


On Fri, Jan 7, 2011 at 12:54 PM, Shoubhik <[email protected]> wrote:

> Could you please be more precise?
>
> On Jan 4, 10:33 am, safol ghadi <[email protected]> wrote:
> > On 1/4/11, Shoubhik <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > when we write
> >
> > > #include<stdio.h>
> >
> > > we are are referring to the header file stdio.h
> >
> > > but where exactly is the code ?? only the function prototypes are
> > > visible in stdio.h  ?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "google-codejam" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-code%[email protected]>
> .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-code?hl=en.
> >
> > Defination of function is present in respective operating system.
> > e.g. printf() defination is present in C:\windows\system directory
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-code%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to