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
102行
/* VC11 provides std::hash */
#if defined(_MSC_VER) && (_MSC_VER < 1700)
#define hash hash_compare
#elif defined(_MSC_VER) && (_MSC_VER>=1900)
#define HAVE_SNPRINTF
#endif
/* Sleep is in ms, on windows */