MinGW 部分版本在 -std=c++11 下,io.h 使用未定義的 off64_t 型別。
編輯 {MinGW 目錄}/include/io.h,將 off64_t 替換為 _off64_t:
// 原始
__CRT_INLINE off64_t lseek64 (int, off64_t, int);
__CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
// 修改為
__CRT_INLINE _off64_t lseek64 (int, _off64_t, int);
__CRT_INLINE _off64_t lseek64 (int fd, _off64_t offset, int whence) {
StackOverflow: static linking qt 5.1 error when running