nuc977 linux應用 helloworld

我是在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 # 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章