How to solve the "undefined reference to 'ntohl'" compile error in Android NDK? -
how solve compile error?
error: undefined reference 'ntohl' collect2: error: ld returned 1 exit status
i use android-ndk-r10d.
when building android ndk, ntohl
, other functions converting between network , host byte order #defines
present in header <sys/endian.h>
. including header should fix compilation error.
Comments
Post a Comment