美文网首页
eclipse封装动态库

eclipse封装动态库

作者: poofball44 | 来源:发表于2018-11-12 14:16 被阅读0次

1、new->c project->shared library->empty project->project name->finish

2、添加source folder,添加src file等跟正常的项目一样

3、properties->c/c++ build->settings->gcc c compiler ->miscellaneous->勾选-fPIC->apply and close

4、build project后在debug文件夹里生成相应的.so文件。

相关文章

网友评论

      本文标题:eclipse封装动态库

      本文链接:https://www.haomeiwen.com/subject/xvxcfqtx.html