Binary compatibility libraries same compiler and compiler version, different OS version

32 Views Asked by At

I have a question regarding binary compatibility.

Suppose I build a library/executable using GCC 9.x for Ubuntu 22.04. I now want to use these binaries also on Ubuntu 23.10. Assuming I didn't accidentally statically link in system libraries, am I able to run/use these binaries for the newer OS? Under the assumption that I link them to the correct libglibc.so etc.

I have tried doing this locally, and it did seem to work. I however have no clue if that is by accident, or is actually reasonable.

0

There are 0 best solutions below