What#39;s the differences between .dll , .lib, .h files?(.dll、.lib、.h 文件之间有什么区别?)
问题描述
为什么我应该在项目中包含一些 *.lib、.h 或一些其他文件?这些东西是干什么用的?
Why in a project should I include some *.lib, .h or some other files? And what are these things used for?
推荐答案
.h
:头文件,它是一个包含声明的源文件(与包含实现的 .cpp、.cxx 等相反),.h
: header file, its a source file containing declarations (as opposed to .cpp, .cxx, etc. containing implementations),.lib
:静态库可能包含代码或只是指向动态库的链接.无论哪种方式,它都是与程序链接的编译代码.静态库在链接时包含在您的 .exe 中..lib
: static library may contain code or just links to a dynamic library. Either way it's compiled code that you link with your program. The static library is included in your .exe at link time..dll
:动态库.就像静态文件一样,但您需要将它与 .exe 文件一起部署,因为它是在运行时加载的..dll
: dynamic library. Just like a static one but you need to deploy it with your .exe file because it's loaded at run time.这篇关于.dll、.lib、.h 文件之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:.dll、.lib、.h 文件之间有什么区别?


- 近似搜索的工作原理 2021-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- C++ 协变模板 2021-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 从python回调到c++的选项 2022-11-16
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 静态初始化顺序失败 2022-01-01