C/C++ on the CLSP grid
Compiling and executing programs requires use of correct dynamic libraries. In a shared environment sometimes you may want to control/debug the exact shared libraries that are being used by your executable. The following flags can help in debugging shared libraries
export LD_TRACE_LOADED_OBJECTS=1 export LD_DEBUG=libs export LD_PRELOAD=PATH_TO_LIBRARY_YOU_WANT_TO_FORCE echo 'ldd ./binary_name'