Linking 32-bit library to 64-bit program

后端 未结 3 1771
天命终不由人
天命终不由人 2020-11-30 11:25

I have a 32-bit .so binary-only library and I have to generate 64-bit program that uses it. Is there a way to wrap or convert it, so it can be used with 64-bit program?

3条回答
  •  猫巷女王i
    2020-11-30 11:42

    No. You can't directly link to 32bit code inside of a 64bit program.

    The best option is to compile a 32bit (standalone) program that can run on your 64bit platform (using ia32), and then use a form of inter-process communication to communicate to it from your 64bit program.

提交回复
热议问题