cthsieh2001 / google-glog

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

Cannot Build Google-GLog on Visual Studio 2013 #212

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Migrated the google-glog.sln to be compatible with 2013
Tried to compile in release and Debug and got the following errors:

1>d:\work\ceres\glog\src\logging.cc(75): error C2039: 'min' : is not a member 
of 'std'
1>d:\work\ceres\glog\src\logging.cc(75): error C2873: 'min' : symbol cannot be 
used in a using-declaration
1>d:\work\ceres\glog\src\logging.cc(1386): error C2065: 'min' : undeclared 
identifier

Original issue reported on code.google.com by simson...@gmail.com on 2 Jun 2014 at 10:48

GoogleCodeExporter commented 8 years ago
Adding 

    #include <algorithm>

to the file named logging.cc solved the problem. Can you fix this in future 
releases?

Original comment by simson...@gmail.com on 2 Jun 2014 at 10:54

GoogleCodeExporter commented 8 years ago
I am completely agree with previous speaker.
Moreover, I prepared patch for clean build in MSVS2013.

Original comment by TheDZ...@gmail.com on 3 Jun 2014 at 8:50

Attachments: