參考
What is the difference between _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64?
gcc -D_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?
gcc -D_FILE_OFFSET_BITS=64
在所有頭文件之前添加,
#define _FILE_OFFSET_BITS 64
或者,更改編譯選項,
gcc -D_FILE_OFFSET_BITS=64