Search code examples
androidcandroid-ndklarge-files

ftello function is undeclared


I'm trying to get current position of file that over 2GB on 32bit OS.

I defined LARGEFILE_SOURCE and FILE_OFFSET_BITS=64 options like below.
APP_CFLAGS := -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

And if I compile on ndk, It says
error: use of undeclared identifier 'ftello'; did you mean 'ftell'?

How can I solve this?


Solution

  • Ah Now I got it..

    To set minSdkVersion in compiler option, I have to do like below.
    APP_PLATFORM := android-24

    Thanks for your advice!