当前位置:网站首页>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 .
边栏推荐
- 数据同步工具 DataX 已经正式支持读写 TDengine
- VS code 运行yarn run dev 报yarn : 无法加载文件XXX的问题
- 产学合作协同育人,麒麟软件携手南开大学合力完成《软件测试与维护》实践课程
- 在arcgis中以txt格式导出点的坐标
- How to view the index information of MySQL tables?
- 使用 WebDAV 替代445端口文件共享
- 国内首家!EMQ加入亚马逊云科技“初创加速-全球合作伙伴网络计划”
- Market status and development prospect forecast of global aircraft hose industry in 2022
- 详解 OpenTSDB 与 TDengine 在系统功能层面上存在的差异
- Market status and development prospect forecast of global epoxy resin active toughener industry in 2022
猜你喜欢

MySQL中的行转列和列转行

xctf攻防世界 MISC薪手进阶区

Vscode suggests that you enable gopls. What exactly is it?

Wechat applet map displays the current position with annotation

如何查看 MySQL 表的索引信息?

Allocate aligned heap space

China's Industrial Software Market Research Report is released, and SCADA and MES of force control enrich the ecology of domestic industrial software

Usage of rxjs mergemap

PostgreSQL数据库WAL——资源管理器RMGR

Don't worry. This is the truth about wages in all industries in China
随机推荐
Technology sharing | introduction to kubernetes pod
Don't worry. This is the truth about wages in all industries in China
If the storage engine of time series database wants to be the best, it has to do its own research
Why migrate from opentsdb to tdengine
Solution to Maxwell error (MySQL 8.x connection)
银河麒麟V10系统激活
[elt.zip] openharmony paper Club - witness file compression system erofs
Usage of rxjs mergemap
全面解析零知识证明:消解扩容难题 重新定义「隐私安全」
Redis Series 2: data persistence improves availability
TP5 generates the most detailed two-dimensional code tp6 (also available)
Hikvision Tools Manager海康威视工具大全(含SADP、录像容量计算等工具)百万安防从业者的实用工具
Redis系列2:数据持久化提高可用性
「技术课堂」如何用 VSCode 从 0 到 1 改写 TDengine 代码
Teach you how to install Oracle 19C on Windows 10 (detailed picture and text with step on pit Guide)
Market status and development prospect forecast of phenethyl resorcinol for skin care industry in the world in 2022
校园书籍资源共享平台
MongoDB和MySQL的区别
阿里巴巴的使命、愿景、核心价值观
PostgreSQL database Wal - resource manager rmgr