when I compile a c++ program in my computer using g++ and transfer the executable to run it on my university server, I get
./main: /usr/lib/libstdc++.so.6:
The version of libstdc++.so.6 is too old on the university computer. You have two options:
-static. The C++ library will then be merged into the final binary.-rpath /path/to/library/directory at build time, or setting the LD_LIBRARY_PATH environment variable to point to the directory containing the newer libstdc++.so.6.