Total Pageviews

Thursday 3 September 2020

把静态库文件转换为动态库文件

 将.a文件转为.so文件。 

.a file is just archives of .object file, so all you need to do is unpack the archive and repackage them as a shared object (.so file).

ar -x mylib.a

gcc -shared *.o -o mylib.so

No comments:

Post a Comment