Cross-Compiling for RaspBerry Pi
With a RaspBerry Pi and from my computer, I'm trying to cross-compile a simple helloWorld written in C++. I'm using Code Sourcery toolchain for linux to compile. When copy the helloWorld binary to raspBerry by TFTP and give it execution permissions with chmod, the next error appears: "Illegal instruction" If make a 'file' over binary I get: "raspberry: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, stripped" This is because I used "-static -static-libstdc++" when linking. If I don't use static linking, the error is: "Segmentation fault" The Code: /* * main.cpp * * Created