files are stored, for example:gcc prog.c -L/home/myname/mylibs mylib.a
pathname : Add pathname to the list of directories in which to search for #include fileswith relative filenames (not beginning with slash /).BY default, The preprocessor first searches for #include files in the directory containingsource file, then in directories named with -I options (if any), and finally, in
.So to include header files stored in /home/myname/myheaders you would do:gcc prog.c -I/home/myname/myheaders Note: System library header files are stored in a special place (/usr/include) and are notaffected by the -I option. System header files and user header files are included in aslightly different manner
: invoke debugging option. This instructs the compiler to produce additional symboltable information that is used by a variety of debugging utilities.
: define symbols either as identifiers (-Didentifer) or as values (-Dsymbol=value) in asimilar fashion as the #define preprocessor command.Explore the libraries to see what each contains by running the command
libfile.man 3 ctime -- section 3 of the unix manual contains documentation of the standard clibrary functions.cat <filename> | more -- view a file.
2. Advanced C topics
Some useful tables for C Programming are given below: