Libraries Session Steps
- Compile each source file separately
- Link the object files into the executable
incr
- Run the executable
incr
- Create a static library for
increment()
- Show what is in the static library
- Link the static library to the executable
incr
- Run the executable
incr
- Create a shared library for
increment()
- Link the shared library to the executable
incr
- Run the executable
incr showing that it cannot find the library
- Show the shared libraries that
incr uses
- Use LD_LIBRARY_PATH so that
incr can find the shared library
- Install the shared library into /usr/local/lib
- Show that
incr still cannot find the library
- Run ldconfig
- Run the executable
incr showing that it can find the library
- Show what libraries
incr uses