When compiling a C code it often requires certain libraries be present. To check which libraries the executable depends on there is a handy linux and OSX command that can show you where the executable thinks these libraries reside:
 ## LINUX ##
 ldd executable\_name

## OSX ##
 otool -L executable\_name
very handy when working on remote machines where things might be a little nutty.

Comments

comments powered by Disqus