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文件。
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
网友评论