本文介绍了从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位共享库?
发布评论