How to build a dylib from several .o in Mac OS X using gcc
-
30-09-2019 - |
Question
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.
Solution
Use g++ -dynamiclib -undefined suppress -flat_namespace *.o -o something.dylib
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow