nuc977 linux应用 helloworld

    技术2025-04-14  9

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

     

    Processed: 0.011, SQL: 9