How to build a dylib from several .o in Mac OS X using gcc

给你一囗甜甜゛ 提交于 2019-11-28 18:46:44

问题


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:


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



来源:https://stackoverflow.com/questions/3532589/how-to-build-a-dylib-from-several-o-in-mac-os-x-using-gcc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!