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)
精彩评论