how to add a shared lib in C?时间:2023-03-08 18:55:12 http://www.cprogramming.com/tutorial/shared-libraries-linux-gcc.html Basically, 2 steps: 1) make the lib. 2) put the lib in /usr/lib and ldconfig (update the loader config). That's it.