XRef.cc is no more compilable with VC 9 in actual git master. Reason for it is, that the use of max() in std::numeric_limits<Goffset>::max() conflicts with the macro max. #ifdef _WIN32 #undef max #endif if (offset > (unsigned long long)std::numeric_limits<Goffset>::max()) { solves it! Cheers, Thomas