Quote Originally Posted by brewbuck View Post
The link is happening fine. You are passing the right library name. The problem is that the linker search path is not the same as the loader search path, so ld.so is unable to find the library. You'll need to either move the library to some standard location or provide its explicit path in LD_LIBRARY_PATH
Yeah, exactly. Well, not exactly, because the library is in a standard path. But with my version of linux the loader uses a ld.so.cache file, which needs to be updated with ldconfig if you add new libraries into a standard path, or the loader won't find them (as if they weren't there).