C/C++ on the CLSP grid

From CLSP Wiki
Revision as of 12:31, 1 September 2017 by Cmay (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Dynamic Libraries

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'