1.项目地址:
https://github.com/google/glog
2. vs 2015编译项目报错
“int snprintf(char *const ,const size_t,const char *const ,…)”已有主体
解决方案:https://github.com/google/glog/pull/92/files
1102行 2 /* VC11 provides std::hash */ 3 #if defined(_MSC_VER) && (_MSC_VER < 1700) 4 #define hash hash_compare 5 #elif defined(_MSC_VER) && (_MSC_VER>=1900) 6 #define HAVE_SNPRINTF 7 #endif 8 9 /* Sleep is in ms, on windows */