EG H167          1:30 Sec.          Winter 2001          Daily Assignment D16Advanced


For the D16 Advanced assignment:


1.          Complete the regular D16 assignment which introduces the implementation of libraries of user written functions.


2.          Complete the following as additions to your D16 Assignment in Step 1 above:


a).  As described in the assignment, the "mylib.o" file is not a true "library" of routines, but rather an "object" file containing the compiled results of the source file which contains the functions.  If one function needs to be changed, the entire source file needs to be recompiled.  We would normally put each function into its own source file, compile it by itself, and use a "library manager" to add to or replace functions stored in the library.  (For this assignment, you can leave all your functions in one "object" file.)  In Unix, the "library manager" is called "ar".  Use the "man" command to read about "ar".


b).  Create a library called "mylib.lib" with the "ar" command which would be something like ">ar mylib.lib".


c).  Place your compiled functions (as contained in "mylib.o") into your true library with another "ar" command which would be something like ">ar ‑r mylib.lib mylib.o".


d).  Get a printed listing of the function modules in your "mylib.lib" library and turn in this listing with your regular assignment.  (Hint: It's another form of the "ar" command.)