Libraries Session Steps

  1. Compile each source file separately
  2. Link the object files into the executable incr
  3. Run the executable incr
  4. Create a static library for increment()
  5. Show what is in the static library
  6. Link the static library to the executable incr
  7. Run the executable incr
  8. Create a shared library for increment()
  9. Link the shared library to the executable incr
  10. Run the executable incr showing that it cannot find the library
  11. Show the shared libraries that incr uses
  12. Use LD_LIBRARY_PATH so that incr can find the shared library
  13. Install the shared library into /usr/local/lib
  14. Show that incr still cannot find the library
  15. Run ldconfig
  16. Run the executable incr showing that it can find the library
  17. Show what libraries incr uses