是否有可能编译在Ubuntu下一个32位系统中的64位可执行文件?有可能、可执行文件、系统、Ubuntu

2023-09-08 00:37:21 作者:上演、独角戏

和,如果可能的话,可以请你点我一个这样的例子?谢谢!

And, if it is possible, can you please point me to an example of this? Thanks!

推荐答案

您正在寻找的是交叉编译。 http://en.wikipedia.org/wiki/Cross_compiler#GCC_and_cr​​oss_compilation

What you are looking for is cross compilation. http://en.wikipedia.org/wiki/Cross_compiler#GCC_and_cross_compilation

正如托马斯说,你需要安装并假设你正在使用gcc,你需要使用-b机选项,可能是一些其他选项也(GCC的人,花了很多目标机器的库时间阅读!)。

As Tomas said, you need the libs of the target machine installed and assuming you are using gcc you will need to use the "-b machine" option, and probably a few other options also (man gcc, and spend a lot of time reading!).

这可以是一个真正的痛苦,以获得正确的,所以我会问是否真的有必要吗?

This can be a real pain to get right, so i would ask whether it is really necessary?

 
精彩推荐
图片推荐