c++mergeshared-librarieslinux-distro

problem with different linux distribution with c++ executable


I have a c++ code that runs perfect on my linux machine (Ubuntu Karmic). When I try to run it on another version, I have all sort of shared libraries missing.

Is there any way to merge all shared libraries into single executable?

Edit: I think I've asked the wrong question. I should have ask for a way to static-link my executable when it is already built. I found the answer in ermine & statifier


Solution

  • There are 3 possible reasons you have shared libraries missing:

    The fixes are: