您的位置:首页 > 编程语言 > C语言/C++

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

2014-04-11 08:33 645 查看

错误"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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐