不同的C++一个项目中的编译器? (MSVC和GNU C++兼容性)

发布于 2025-02-10 03:02:00 字数 250 浏览 0 评论 0原文

一个非常简单的C ++问题,更针对编译器: 假设我使用最新的Microsoft Visual C ++编译器创建一个静态库( .lib)或动态链接库( .dll)。

如果标题文件可用,我还可以在GNU C ++编译器项目(在同一操作系统中)中直接使用此类库吗?

那是不兼容的,是吗? (我首先考虑不同的ABI等。)

非常感谢。

PS:我有一个未知的第三方库(LIB)。我可以在这里找出使用哪个编译器来生成它吗?

A very simple C++ question that is more aimed at the compilers:
Suppose I create a static library (.lib) or a dynamic linked library (.dll) with the latest Microsoft Visual C++ compiler.

Can I also use such a library directly in GNU C++ compiler projects (within the same operating system) if the header files are available?

That's not compatible with each other, is it? (I'm thinking first of a different ABI etc.)

Many Thanks.

PS: I have an unknown 3rd party library (lib) available. Can I find out here which compiler was used to generate it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文