eburtsev / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Windows Visual Studio 2013 - std::min is missing (Solution included) #197

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build with Visual Studio 2013
2. Import of the sln solution will convert from Visual Studio 2012 to Visual 
Studio 2013 

Solution : Add #include <algorithm> in src\logging.cc

Error:
..\src\logging.cc(75): error C2039: 'min' : is not a member of 'std' 
[c:\SDK\glog\build\glog.vcxproj]
..\src\logging.cc(75): error C2873: 'min' : symbol cannot be used in a 
using-declaration [c:\SDK\glog\build\glog.vcxproj]
..\src\logging.cc(1386): error C2065: 'min' : undeclared identifier 
[c:\SDK\glog\build\glog.vcxproj]
..\src\logging.cc(1386): error C2062: type 'int' unexpected 
[c:\SDK\glog\build\glog.vcxproj]

Original issue reported on code.google.com by yann.ste...@gmail.com on 3 Apr 2014 at 1:14