https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103445
--- Comment #5 from cqwrteur <unlvsur at live dot com> --- (In reply to Jonathan Wakely from comment #4) > Sorry, I don't understand anything above. I don't care whether you're using > mingw or mingw-w64, what I asked is how old it is. Libstdc++ expects a > recent version, and I'm not surprised if it doesn't work with older > versions. It's just not worth the effort to support very old version. > > Maybe we can add some more configure checks for _wstat64 and ftruncate64 and > skip all the filesystem code if building against an old CRT. I do not know how old it is. it comes from dev c++ 4.9.9.2 (dev c++ is a dead project) which uses gcc 3.4.2. The issue I encountered is that mingw-w64 does not run properly sometimes for certain reasons on old version of windows. "Maybe we can add some more configure checks for _wstat64 and ftruncate64 and skip all the filesystem code if building against an old CRT." Yeah. Sounds good. But I think support that version of crt from dev c++ has more issues than just this. I think just better just add a configure to skip filesystem code manually. That would trivialize a lot of things, rather than wasting time supporting old versions of crt.