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/23419303MinGW的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
相关文章推荐
- C++常见错误之error: 'XXX' does not name a type或undefined reference to `__glutInitWithExit'
- C++ : [Error] 'ostream' does not name a type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- ndk编译错误:error: 'override' does not name a type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 前置声明与C++头文件互相包含导致的error: 'xxx' does not name a type问题
- 由“error string in namespace std does not name a type”错误引发
- Linux C++编译报错:"multiple definition of" / "does not name a type"
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- javascript 错误 "Uncaught TypeError: string is not a function"
- 解决The type or namespace name \'XXXX\' does not exist in the namespace \'XXXXXXXXX\' 的错误
- editor does not contain a main type" 错误解决方
- jquery TypeError: 'undefined' is not a function (evaluating 'elem.nodeName.toLowerCase()') [jquery.js:1904]错误原因
- ERROR: type "double" does not exist
- ERROR: type "double" does not exist
- gem5编译错误:'ptrdiff_t' does not name a type 和 build/ALPHA/python/swig/stats_wrap.o
- 编译错误--------:XX does not name a type和field `XX' has incomplete type