I want to develop a C++ library that can be used on multiple Linux distributions like RHEL, Suse, Ubuntu etc...If I compile my source code into a .so (shared library) on one Linux environment(say RHEL), will it work on other environments also without being recompiled? Are the gcc and C/C++ libraries different in different environments?
Common library for all linux distributions
gcc;libraries;c++;shared library
If I compile my source code into a .so (shared library) on one Linux environment(say RHEL), will it work on other environments also without being recompiled?In general, no. You want to use a build system that supports portability. Autotools is the standard. An alternative is Cmake.