我是在windows 下寫的helloworld.c文件
#include <stdio.h>
int main()
{
printf("hello world \r\n");
printf("nuc977 linux 3.1.x \r\n");
return 0;
}
用ftp軟件傳到ubuntu
在ubuntu下打開terminal
到helloworld.c文件目錄下
arm-linux-gcc helloworld.c -o helloworld
打開開發板掛載nfs,我用的是SecureCRT
~ # ~ # mount -t nfs -o nolock 192.168.0.199:/home/hbin/nfs /mnt
~ # cd /mnt/
/mnt #
/mnt # ls
app driver rootfs_hb
/mnt # cd app/
/mnt/app # ls
helloworld helloworld.c
/mnt/app # ./helloworld
hello world
nuc977 linux 3.1.x
/mnt/app #