开发者

How to get unix executable form of .a library?

开发者 https://www.devze.com 2023-04-03 13:09 出处:网络
I have a library which i want to use inmy iphone project which uses cpp files as well ... in order to do so i need the unix executable form o开发者_JAVA技巧f .a file..>?You need to write a program of

I have a library which i want to use in my iphone project which uses cpp files as well ... in order to do so i need the unix executable form o开发者_JAVA技巧f .a file..>?


You need to write a program of your own with a main function which uses the functions in the library you want to use. The library doesn't contain any code to exercise its own functions (I won't reiterate what @Steve-o already wrote in the comment -- took the words out of my mouth). It is fairly common for the source code of a library to include a simple demo program, but this is rarely distributed with the binary library.

0

精彩评论

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