当前位置: 首页 > 工具软件 > AttC > 使用案例 >

C++ - 错误"error: 'off64_t' does not name a type"

乐正心思
2023-12-01

错误"error: 'off64_t' does not name a type"

 

本文地址: http://blog.csdn.net/caroline_wendy/article/details/23419303

 

MinGW的bug,使用-std=c++11, 有可能出现, 修改{MinGW dir}/include/io.h文件,

使用:

 

__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) {


即可.

 

参考: http://stackoverflow.com/questions/20126219/static-linking-qt-5-1-error-when-running

 

 

 

 类似资料: