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
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 初始化列表*参数*评估顺序 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- CString 到 char* 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
