=========== 소스 ===========
#include <stdio.h>
int main(int argc, char** argv)
{
printf("Hello World!\n");
return 0;
}
==========================
위소스 를 크로스컴파일해서
망고보드에 안드로이드를 올리고 adb shell 접속후
컴파일한 위 소스를 shell 에서 출력하고 싶은데
기존 리눅스보드에 올리는처럼 컴파일 하니
sh: ./helloworld.o: cannot execute binary file
이런 에러가 뜨네요
2. 전 CodeSourcery G++ Lite로 컴파일 했는데 "-static" 옵션을 줘야 제대로 실행되더군요.