当前位置:天才代写 > tutorial > C语言/C++ 教程 > C++:错误“error: ‘off64_t’ does not name a type”

C++:错误“error: ‘off64_t’ does not name a type”

2017-11-02 08:00 星期四 所属: C语言/C++ 教程 浏览:520

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

 

    关键字:

天才代写-代写联系方式