从64位应用程序加载32位共享库? [英] Load 32-bit shared library from 64-bit application?

查看:118
本文介绍了从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位共享库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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