[문의] linux cross complie시 링크에러

bluesolip의 이미지

안녕하세요.

Embedded system target에 올리려고 closs compile을 하는데 다음과 같은 에러들이 발생하여 문의드립니다.

a.c:(.text+0x39d4): undefined reference to 'htole32'
collect2: ld returned 1 exit status

다음의 헤더는 추가 하였습니다.
#include "endian.h"

찾아보니 glibc2.9 이상이 필요하다고는 하는데 어떻게 해야하는지는 잘 모르겠습니다.
compile할때 어떤 lib등이 추가 되어야 하는지요?
도움 부탁드립니다.

hys545의 이미지

http://stackoverflow.com/questions/26713198/undefined-reference-to-htole32
보니까
저렇게 하라고 하네여
한번
endian.h
에서
htole32
부분이 어떻게 되어있는지 보는게 좋을듯

즐린