title: How to use dylib in Mac OS X (C++)
body: <p>I made an application (an executable) calling some dylib successfully. However, the dylib files and the executable are in different directory. I added the directory contains dylib files to the <code>$PATH</code> environment variable. However, it still doesn't load. I copy all the dylib files to the executable, the program finally runs. This confirms the dylib files have no problem. However, how can I tell the OS to find it?<br />
  In windows, I just need to add the directory path contains dll files to $PATH. What do I need to do for Mac OS X?</p>