转载请注明出处:http://blog.csdn.net/yf210yf/article/details/7355614
在工作目录下建立helloworld.c文件
#include <stdio.h>
main()
{
printf("helloworld!\n");
}
保存关闭后。
编译helloworld文件:
root@snail:/home/workdir/qt/project/helloworld# arm-linux-gcc helloworld.c -o helloworld
生成可执行文件helloworld:
将可执行文件helloworld拷贝到文件系统目录,并执行
执行成功。
这是最简单的交叉编译示例。