Those are relative paths. The folder where folders 'linux', 'asm' and 'sys' are is in the include path. Same thing applies to your own projects. Add whatever folder you want to include path and if you have another folder inside of that called module_a and you want to get to foo.h that is located inside of it you could do #include <module_a/foo.h>
Not sure what low-level linking is, but as far as I know there is nothing special about compiling linux kernel other than all the messy makefiles that it comes with. - Lev Neiman On Mon, Jan 3, 2011 at 11:52 PM, Shoubhik <[email protected]> wrote: > Hi Lev, > > Thanks.. > > But isnt providing the path necessary ? > > I was going through the Linux Kernel 0.01 source code.... > > "main.c" started with.. > > > #include <linux/tty.h> > #include <linux/sched.h> > #include <linux/head.h> > #include <asm/system.h> > #include <asm/io.h> > > #include <stddef.h> > #include <stdarg.h> > #include <unistd.h> > #include <fcntl.h> > #include <sys/types.h> > > .............................................................. > > Or is it beacause here low level linking is necessary... > > (maybe the modern compilers automatically do the job perhaps) is it > so? > > > > > On Jan 4, 6:58 am, Lev Neiman <[email protected]> wrote: > > Please also consider that if you add more custom include folders to your > > C/C++ compiler environment then you can include your own .h files with > this > > pattern. That is you can do #include <myclass.h> even if myclass.h is > not > > in same folder as source file you are including it from. > > > > All that #include <somefile> does is tell your compiler to look for > > 'somefile' in the include folders. There are several default include > > folders that come with most compilers, but you can also add your own. > > > > - Lev Neiman > > > > > > > > > > > > > > > > On Mon, Jan 3, 2011 at 4:08 PM, Daniel Neiter <[email protected]> wrote: > > > Correct. > > > Though source code may be available for information purposes it's never > > > used for building new programs. > > > > > On 03.01.2011 22:55, Shoubhik wrote: > > > > >> So,that means they are pre-built and are just linked when the > situation > > >> arises. ( i'm using Borland C++) -- > > >> 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]> > <google-code%2bunsubscr...@googlegr oups.com> > > >> . > > >> 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]<google-code%[email protected]> > <google-code%2bunsubscr...@googlegr oups.com> > > > . > > > 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]<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.
