Skip to content

Tag: shared-libraries

Trying to build C++ exe that uses .so that uses other .so files

I’m trying to build a C++ executable that links with a shared library, was built and linked with another shared library, was built using -rpath to look for a custom build of a system library in my home directory ( If I do a “readelf -d” on, I see as “NEEDED”, and I also

Linker cannot find local shared library

I’m trying a very simple exmaple to create a shared library and link to it. The shared library is as follows: Then the source code file is just as simple: I’m then compiling that into a shared library with: All good, we get an library so to test it, with the following code in teh same directory as the