https://download.csdn.net/download/liujianhua1989/9880036 下载编译器。
//helloworld.cpp
#include <iostream>
using namespace std ;
int main()
{
cout << "Hello BeagleBone\n" << endl ;
return 0;
}
#Makefile
helloworld:helloworld.cpp
arm-linux-gnueabihf-g++ -o helloworld helloworld.cpp