开发者

Setting current/compatibility version for a dylib using Netbeans (linux/mac)

As per the title, how can I set those? Moreover, how can I set versions themselves?

Thanks to 开发者_开发技巧all and best regards.


I believe you can add build options to your project. You'd need to add linker options to set the compatible and current versions according to this page on "Mac OS X for for Unix Geeks": library version. (They use a library called "answer" in their examples, with a supposed current version of 1.2.6)

-dynamiclib -install_name libanswer.1.dylib \
  -compatibility_version 1.2 -current_version 1.2.6 \
  -o libanswer.1.2.6.dylib $(OBJS) 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜