Static compilation of Qt 5 fails under mingw with reference to off64_t

前端 未结 1 446
小鲜肉
小鲜肉 2020-12-19 13:18

I tried to make static qt, and got error during mingw-make. This is text of error.

static\\qhttpnetworkreply.o access\\qhttpnetworkreply.cpp
In file included         


        
相关标签:
1条回答
  • 2020-12-19 14:08

    it is some bug in MinGW, when one of -ansi, -std=c++11, -std=c++03 and -std=c++98 are used. in file {MinGW dir}/include/io.h replace

    __CRT_INLINE off64_t lseek64 (int, off64_t, int);
    __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) {
    

    with

    __CRT_INLINE _off64_t lseek64 (int, _off64_t, int);
    __CRT_INLINE _off64_t lseek64 (int fd, _off64_t offset, int whence) {
    
    0 讨论(0)
提交回复
热议问题