静态库,动态库,DLL,入口点,标题...如何摆脱这个活着? [英] Static libraries, dynamic libraries, DLLs, entry points, headers ... how to get out of this alive?

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

问题描述

我最近不得不在Windows下为C#编程大学项目编写C ++,我对静态和动态库系统感到困惑,编译器需要什么,链接器需要什么,如何构建库?有没有关于这个有好的文件吗?我对* nix库系统感到很困惑(所以,dylibs,ar工具,如何编译它们),你可以在各种架构上指出一个关于当前图书馆技术的审查文件?



注意:由于我的知识不足,此消息可能包含错误的概念,随时可以对其进行修改。



谢谢



随意添加更多参考资料,我将其添加到摘要。






参考



由于大多数人发布了* nix或Windows特定的引用将在这里总结最好的,我将标记为接受答案维基百科,因为是一个好的起点(并有参考内容)来介绍这个东西。



程序库Howto (Unix)



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



DLL信息(StackOverflow)(Wi ndows)



编程C (Unix)



An编译和链接概述(Windows)

解决方案

- 大量的信息,以及许多与其他有用资源的链接。



PS但也许最好只是问一个关于你目前遇到的问题的具体问题。学习如何解决这个问题可能需要很长时间才能教你一般概念。


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.

Thank you

Feel free to add more reference, I will add them to the summary.


References

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.

Program Library Howto (Unix)

Dynamic-Link Libraries (from MSDN) (Windows)

DLL Information (StackOverflow) (Windows)

Programming in C (Unix)

An Overview of Compiling and Linking (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天全站免登陆