从64位应用程序加载32位共享库?

编程入门 行业动态 更新时间:2024-10-28 13:15:43
本文介绍了从64位应用程序加载32位共享库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个编译为32位的共享库。我可以从64位应用程序中使用它,还是需要将共享库编译为64位?

I have a shared library that is compiled as 32-bit. Can I use it from a 64-bit application or do I need to compile the shared library as 64-bit as well?

推荐答案

不,您不能通过常规方式在64位应用程序中加载32位库。

No, you cannot load a 32-bit library in a 64-bit application through conventional means.

有一些聪明的技巧,如32位应用程序加载库并通过IPC接口导出函数,但如果你有选择将库编译为64位,那么这是目前最好的选择。

There are some clever hacks out there such as having a 32-bit application which loads the library and exports the functions through an IPC interface, but if you have the option to compile the library as 64-bit, then that is by far the best choice.

更多推荐

从64位应用程序加载32位共享库?

本文发布于:2023-05-25 12:58:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/228606.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   加载

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!