参考:What is the difference between _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64?What is the difference between _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64?
在头文件之前添加:
#define _FILE_OFFSET_BITS 64
或者更改编译选项:
gcc -D_FILE_OFFSET_BITS=64
参考:What is the difference between _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64?What is the difference between _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64?
在头文件之前添加:
#define _FILE_OFFSET_BITS 64
或者更改编译选项:
gcc -D_FILE_OFFSET_BITS=64