
It's possible to install the GNU GCC on-board and use the board itself to compile natively your applications instead of a cross compiler on an external PC. To do that type:
~# apt-get update ~# apt-get install g++
Now try if the compiler works using an "Hello world !" source code example:
#include "iostream"
using namespace std;
int main(int argc, char *argv[]) {
cout << "Hello world !" << endl;
return 0;
}
Save this code on your board in a file called hello.cc then compile it by typing:
debarm:~# g++ hello.cc -o hello
at the end run it by typing:
debarm:~# ./hello Hello world !