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.

Was it helpful?

Solution

Use g++ -dynamiclib -undefined suppress -flat_namespace *.o -o something.dylib

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top