当前位置:网站首页>How to encapsulate and call a library
How to encapsulate and call a library
2022-06-27 19:06:00 【fb_ help】
How to encapsulate and call a library
The target library is very complex, with many header files and library files , My current program does not want to add these additional dependencies , In particular, I don't want to add more include dir. At this point, you need to encapsulate the complex library into a cpp Inside , In this way, the source program only needs to add a header file and some lib You can achieve the desired function .
Define one's own lib
The header file Party calling function
cpp Achieve the desired function ,
This lib Of cpp Add the header file of the target library in , This library is connected to the target library lib file .
Call your own... In the program lib
Call your own lib, In this case, you only need to import a header file , And all the dependencies lib Just file it .
边栏推荐
- 如何实现IM即时通讯“消息”列表卡顿优化
- 国内首家!EMQ加入亚马逊云科技“初创加速-全球合作伙伴网络计划”
- 阅文、中文在线等网文平台如何布局数字藏品?未来是否会推出“Read/Write-to-Earn”产品?
- SQL update批量更新
- 推荐几个开源的物联网平台
- 如何查看 MySQL 表的索引信息?
- 【云驻共创】高校数字化差旅建设“解决之道”
- Jinyuan's high-end IPO was terminated: it was planned to raise 750million Rushan assets and Liyang industrial investment were shareholders
- 信息学奥赛一本通 1333:【例2-2】Blah数集 | OpenJudge NOI 3.4 2729:Blah数集
- 时序数据库(Time Series Database)的存储引擎要想做到极致,还得自研
猜你喜欢
New Zhongda chongci scientific and Technological Innovation Board: annual revenue of 284million and proposed fund-raising of 557million
MFS distributed file system
Mise à jour SQL mise à jour par lots
Vscode suggests that you enable gopls. What exactly is it?
Win10 LTSC 2021 wsappx CPU usage high
2022年信创行业空间测算
产学合作协同育人,麒麟软件携手南开大学合力完成《软件测试与维护》实践课程
利用OpenCV执行相机校准
Open source summer 2022 | opengauss project selected and announced
技术分享 | kubernetes pod 简介
随机推荐
Usage of rxjs mergemap
How to view the index information of MySQL tables?
Simple anti shake for wechat applet
Good news - British software 2022 has obtained 10 invention patents!
Hikvision tools manager Hikvision tools collection (including sadp, video capacity calculation and other tools) a practical tool for millions of security practitioners
TP5 generates the most detailed two-dimensional code tp6 (also available)
How to arrange digital collections on online platforms such as reading and Chinese online? Will "read/write-to-earn" products be launched in the future?
Contest3182 - the 39th individual training match for 2021 freshmen_ F: ss
Daily leetcode force deduction (31~35)
金源高端IPO被终止:曾拟募资7.5亿 儒杉资产与溧阳产投是股东
TIA博途_基于SCL语言制作模拟量输入输出全局库的具体方法
Market status and development prospect forecast of global epoxy resin active toughener industry in 2022
VS code 运行yarn run dev 报yarn : 无法加载文件XXX的问题
Keras deep learning practice (12) -- facial feature point detection
一位平凡毕业生的大学四年
openssl客户端编程:一个不起眼的函数导致的SSL会话失败问题
Market status and development prospect forecast of global triisopropyl chlorosilane industry in 2022
Galaxy Kirin V10 system activation
SQL update批量更新
New Zhongda chongci scientific and Technological Innovation Board: annual revenue of 284million and proposed fund-raising of 557million