【发布时间】:2015-12-15 23:23:09
【问题描述】:
我是 arm-linuxgnueabihf-g++ 的新手。我正在使用 Ubuntu 14.04 并安装了 arm-linuxgnueabihf-g++-4.7 的 amd64 机器。我想交叉编译针对 32 位 arm 架构的应用程序。
我运行命令:
arm-linux-gnueabihf-g++ -m32 hello.cpp -o hello.
但它给了我错误:arm-linux-gnueabihf-g++: error:
unrecognized command line option ‘-m32’.
而且互联网上似乎很少有关于 arm-linux-gnueabihf-g++ 的文档。
谁能帮帮我?
【问题讨论】:
-
不确定,但也许你一直使用谷歌搜索错误。如果我申请gcc "-m32",我会得到很多可能对您有所帮助的结果。
标签: c++ linux arm cross-platform cross-compiling