静态库、动态库、DLL、入口点、头文件……如何摆脱这种状态? [英] Static libraries, dynamic libraries, DLLs, entry points, headers ... how to get out of this alive?

查看:36
本文介绍了静态库、动态库、DLL、入口点、头文件……如何摆脱这种状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近不得不在 Windows 下为一个大学项目编写 C++ 程序,我对静态和动态库系统、编译器需要什么、链接器需要什么、如何构建库感到很困惑……有没有有关于这个的好文件吗?我对 *nix 库系统也很困惑(所以,dylibs,ar 工具,如何编译它们......),你能指点一份关于各种体系结构上当前库技术的评论文档吗?

I recently had to program C++ under Windows for an University project, and I'm pretty confused about static and dynamic libraries system, what the compiler needs, what the linker needs, how to build a library ... is there any good document about this out there? I'm pretty confused about the *nix library system as well (so, dylibs, the ar tool, how to compile them ...), can you point a review document about the current library techniques on the various architectures?

注意:由于我的知识不足,此消息可能包含错误的概念,请随时对其进行编辑.

Note: due to my poor knowledge this message could contain wrong concepts, feel free to edit it.

谢谢

请随意添加更多参考,我会将它们添加到摘要中.

参考资料

由于你们中的大多数人发布了 *nix 或 Windows 特定的参考资料,我将在这里总结最好的参考资料,我会将维基百科的答案标记为已接受的答案,因为这是一个很好的起点(并且里面也有参考资料)来介绍这一点东西.

Since most of you posted *nix or Windows specific references I will summarize here the best ones, I will mark as accepted answer the Wikipedia one, because is a good start point (and has references inside too) to get introduced to this stuff.

程序库使用方法 (Unix)

动态链接库(来自 MSDN) (Windows)

DLL 信息 (StackOverflow) (Windows)

C 语言编程(Unix)

编译和链接概述(Windows)

推荐答案

维基百科开始 - 那里有大量信息,以及许多其他有用资源的链接.

Start with Wikipedia - plenty of information there, and lots of links to other useful resources.

附言但也许最好就您目前遇到的问题提出一个具体问题.学习如何解决它可能对教你一般概念大有帮助.

P.S. But perhaps it would be better to just ask a specific question about the problem you're currently having. Learning how to solve it may go a long way to teaching you the general concepts.

这篇关于静态库、动态库、DLL、入口点、头文件……如何摆脱这种状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆