4 ms·
gcc main.c --target=arm-linux-gnueabihf -o app this is definitely wrong, the correct way is to use arm-linux-gnueabihf-gcc main.c instead, there is no such fla
by synergy20 1y ago
gcc main.c --target=arm-linux-gnueabihf -o app
this is definitely wrong, the correct way is to use arm-linux-gnueabihf-gcc main.c instead, there is no such flag called --target per se
- tamnd 1y agoFixed, thanks for pointing this out.
- 201984 1y agoDid you not even try the original command? As you've now updated it (https://github.com/little-book-of/c/commit/43b0a89852a507bddfd74bbf9a356fee472cb922 https://github.com/little-book-of/c/commit/43b0a89852a507bdd...), it is definitely not one simple flag since arm-linux-gnueabihf-gcc has to be installed from somewhere. It doesn't exist in a default installation of GCC that only targets the host, and you'll need to install a GCC version for every architecture you want to target.