https://issues.dlang.org/show_bug.cgi?id=18017
--- Comment #2 from krzaq <[email protected]> --- Getting -m64 to work requires non-zero effort and even then isn't hassle-free. I used this as a workaround instead: ulong getFileSize(const string name) { import std.utf; import core.sys.windows.windows; //import core.stdc. HANDLE hFile = CreateFile(name.toUTF16z, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile==INVALID_HANDLE_VALUE){ return -1; // error condition, could call GetLastError to find out more } LARGE_INTEGER size; if (!GetFileSizeEx(hFile, &size)) { CloseHandle(hFile); return -1; // error condition, could call GetLastError to find out more } CloseHandle(hFile); return size.QuadPart; } --
