I have code from another windows based tool which generates a few .cpp files and also a CMakeList.txt file. This is then copied to Linux used to create a Shared Object (SO) and an executable to test the SO using CMake and make.
I was having problems doing the above in my company environment (Red Hat 3.2.3-54) due to an out of date gcc compiler (3.2.3). So I set up an independent machine and installed the latest Fedora. I then did the above and created a test executable which worked and used the SO. I then made some changes to the test.cpp file and recompiled it and my changes worked too.
Then I wanted to transfer the two files back to the company environment, but I had problems because of the newer SO files used from the /lib. To get around this I tried many things but in the end the closest I got was to copy the required SO files (libstdc++.so.6, libc.so.6, libgcc_s.so.1) and then setting the LD_LIBRARY_PATH to the folder containing them.
Then I tried to run the test executable ./test and got this: