1、编写程序
在共享文件夹/home/student/share下新建Hello.c文档 如图1
图1
使用gcc编译运行如图2
图2
2、交叉编译
使用交叉编译工具链arm-linux-gcc进行编译,如图3
arm-linux-gnueabihf-gcc Hello.c -o hello.out
./hello.out
图3
如上图用gcc编译出来的可执行文件。无法运行

在共享文件夹/home/student/share下新建Hello.c文档 如图1
图1
使用gcc编译运行如图2
图2
使用交叉编译工具链arm-linux-gcc进行编译,如图3
arm-linux-gnueabihf-gcc Hello.c -o hello.out
./hello.out
图3
如上图用gcc编译出来的可执行文件。无法运行