Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What are the headaches with shared libraries?

Assuming that you pin the version of the library you need, two applications using the same library /shouldn't/ cause issues.

In most *nix systems - each instance of a shared library has its own data.



I am assuming you know the answer to the question if you have been developing code for awhile. What makes the problem worse is that it is transitive. I link against Colmap libs, which links against Ceres libs, which links against OpenMP, … these are ever changing code bases and I have to create executables that run on local machines, Azure cloud machines, AWS cloud machines, … chafed down shared lib mismatches becomes a nightmare.


“ Assuming that you pin the version of the library you need, two applications using the same library /shouldn't/ cause issues.”

Then why bother?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: