How do I make a Mach-O binary from an object file?
- by Mike
I have an object file, which I'd like to make into a Mach-O binary(I'm on Mac OS 10.6). Running ld source.o produces the following output:
Undefined symbols:
"_printf", referenced from:
_main in source.o
ld: symbol(s) not found for inferred architecture x86_64
How can I reference libSystem(or whatever library includes printf) using ld?