码迷,mamicode.com
首页 > 其他好文 > 详细

unknow type name 'off64_t'

时间:2015-04-24 13:57:37      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:

或者 

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

 

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

使用:

  1. __CRT_INLINE _off64_t lseek64 (int, _off64_t, int);  
  2. __CRT_INLINE _off64_t lseek64 (int fd, _off64_t offset, int whence) {  

代替:

  1. __CRT_INLINE off64_t lseek64 (int, off64_t, int);  
  2. __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

 

unknow type name 'off64_t'

标签:

原文地址:http://www.cnblogs.com/davytitan/p/4453160.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!