title: Cannot load 32 bit dylib from 64 bit process and vice versa on OSX?
body: <p>I came across a problem yesterday where my program failed as 32 bit process.</p>
  
  <p>I had a dylib compiled as 64 bit and I was using it on 64 bit application. But when I turned it to 32 bit for testing and tried to load it, it did not worked. dlopen() returned NULL?</p>
  
  <p>Do I need to have 32 bit and 64 bit dylib for 32 bit and 64 bit binary respectively? Is there any work around? </p>