How do I create a dynamic library (dylib) with Xcode?

前端 未结 4 1426
慢半拍i
慢半拍i 2020-12-04 09:55

I\'m building few command-line utilities in Xcode (plain C, no Cocoa). I want all of them to use my customized version of libpng, and I want to save space by sharing one cop

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 10:33

    Are you aware of the Apple reference page Dynamic Library Programming Topics? It should cover most of what you need. Be aware that there a shared libraries that get loaded unconditionally at program startup and dynamically loaded libraries (bundles, IIRC) that are loaded on demand, and the two are somewhat different on MacOS X from the equivalents on Linux or Solaris.

提交回复
热议问题