I have several .o files and want to bundle them in a .dylib, how can I do that it Mac OS X using gcc? Thank you very much.
A file with the DYLIB file extension is a Mach-O (Mach Object) Dynamic Library file that an application references during runtime in order to perform certain functions on an as-needed basis. The format has replaced the older A. OUT file format.
Use g++ -dynamiclib -undefined suppress -flat_namespace *.o -o something.dylib
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With