Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个 .o 文件并想将它们捆绑在 .dylib 中,我该如何使用 gcc 在 Mac OS X 中做到这一点?非常感谢你。
采用g++ -dynamiclib -undefined suppress -flat_namespace *.o -o something.dylib
g++ -dynamiclib -undefined suppress -flat_namespace *.o -o something.dylib