首页 > 其他 > 详细

unknow type name 'off64_t'

时间:2015-04-24 13:54:52      阅读:240      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!