MATLAB: C shared library created with Compiler – compatibility between Linux distributions

compatibilitycompilergentoolinuxMATLAB Compilershared libraryUbuntu

Hello!
I need to deploy to several clients a shared library created with Matlab compiler. They are running the same type of hardware as me, but different Linux distributions (e.g. Ubuntu, Gentoo…).
Has somebody tried this before? Are there potential issues with this?
Thanks! Pierre

Best Answer

The version of the kernel, glibc(C-runtime library), libstdc++(C++ runtime library), binutils(for ld - the linker loader) can cause issues. The MCR ships the version of libstdc++.so that a compiled library needs in MCRROOT/sys/os/glnx86 or MCRROOT/sys/os/glnxa64. The system requirement page mentions minimum kernel and glibcx version:
http://www.mathworks.com/support/sysreq/current_release/linux.html