views:

22

answers:

1

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.

+1  A: 

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

Tianyi Cui