nuc977 linux应用 helloworld

我是在windows 下写的helloworld.c文件

#include

int main()
{
    printf("hello world  \r\n");
    printf("nuc977 linux 3.1.x \r\n");
    return 0;
}

nuc977 linux应用 helloworld_第1张图片

用ftp软件传到ubuntu

在ubuntu下打开terminal

到helloworld.c文件目录下

arm-linux-gcc helloworld.c -o helloworld

nuc977 linux应用 helloworld_第2张图片

打开开发板挂载nfs,我用的是SecureCRT 

 

nuc977 linux应用 helloworld_第3张图片


~ # ~ # 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 # 

 

你可能感兴趣的:(NUC977,Linux)