和,如果可能的话,可以请你点我一个这样的例子?谢谢!
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_cross_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?