4
ndk 용 애플리케이션을 컴파일하고 있는데 "정의되지 않은 참조가 '__errno_location'"이됩니다. " 내가이 줄을 언급하는 경우, 링커가 않습니다, 그렇지 않으면 같은 불평하지 않습니다'__errno_location'에 대한 정의되지 않은 참조
sprintf(buff, "%s TIOCMGET failed: %s\n", buff, strerror(errno));
오류는 라인에서 온다.
Sourcery G ++ Lite의 arm-none-linux-gnueabi-gcc 툴 체인을 사용하여 안드로이드 용 실행 파일을 직접 만들려고합니다.
흠 ... 다음은 제 컴파일 단계입니다 :'arm-none-linux-gnueabi-gcc -I \ Apps \ Android \ GT-I9100G_OpenSource \ kernel \ include -I "\ Apps \ CodeSourcery \ Sourcery G ++ Lite \ arm -none-linux-gnueabi \ libc \ usr \ include "-c hello.c -o hello.o arm-none-linux-gnueabi-ld --entry = _start --dynamic-linker/system/bin/linker -nostdlib -lpath/system/lib -rpath-link \ apps \ android \ system \ lib -L \ apps \ android \ system-lib -lc -l android_runtime -l sqlite -o hellodynamic2 hello.o crt0.o' 여기에 실수가 있습니까? –
G ++ LibC의 헤더가 포함되어 있지만 Android LibC와 연결되어있는 것 같습니다. Android 플랫폼의 LibC 헤더를 포함 시키십시오. – Nick
android 플랫폼, 커널 소스 또는 NDK를 의미합니까? –