Ubuntu: Use gcc-4.6-arm-linux-gnueabihf to compile .c file, What is the command?


I am doing cross compiling. I install the gcc-4.6-arm-linux-gnueabihf and want to use it to compile the .c file(example of hello world) and then run it on ARM. I don't know what is the exact command. Commands like gcc -c filenam.c seem not correct.

Thanks for answering.


if you compile the c source file, you'll need to do like below:

gcc-4.6-arm-linux-gnuebihf filenam.c -o filenam  

through this, executable file with name 'filenam' will be generated on your current folder.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »