How do you use a .so file in Linux?

How do you use a .so file in Linux?
Answer
You should use
the linker option -rpath, which tells the linker to add information in the executable program where to find runtime libraries like your . so file. This will pass -rpath=$(pwd) to the linker, and $(pwd) causes the shell to call the pwd command to return the current directory.
 

Tìm kiếm

Back
Top