[Qt-interest] MinGW and msvcr90.dll under Windows

Bob Babcock wssddc at nospam.gis.net
Sun Nov 28 00:32:06 CET 2010


Pavel Koshevoy <pavel at aragog.com> wrote in
news:4CF1659E.1000808 at aragog.com: 

> Why not simply have a look at how QFile works (in Qt source code), and
> avoid the port to QFile?

I just found a workaround: fgetpos and fsetpos take __int64 positions and 
do not require msvcr90.dll.  I can use these instead of fseek/ftell.

Digging into the Qt sources, it looks like _fseeki64 and _ftelli64 are used 
for VC++ while fseeko64 and ftello64 are used for g++.

Preliminary tests indicate that either of the above work for my big files.

All my troubles go back to searching for fseek in MinGW stdio.h and finding 
_fseeki64 followed by some win9x-specific stuff.  If I'd just searched a 
little further, I would have found fseeko64.

Thanks.



More information about the Qt-interest-old mailing list