title: How do I make a Mach-O binary from an object file?
body: <p>I have an object file, which I'd like to make into a Mach-O binary(I'm on Mac OS 10.6). Running <code>ld -e _main source.o /usr/lib/libc.dylib</code> produces the following output:</p>
  
  <pre><code>ld: symbol dyld_stub_binding_helper not defined (usually in crt1.o/dylib1.o/bundle1.o) for inferred architecture x86_64
  </code></pre>
  
  <p>How can I reference libc using ld?</p>