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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -