Am attempting to compile the 1.6.1 code using Visual Studio C++ 2013....and am getting the following error:

Emoji error C2039: 'max' : is not a member of 'std'

(This same issue occurs with 'min', but I've omitted its reference here.)  This exception is returned at compile-time with a number of C3861 errors ('max': identifier not found).  They are recurrent in the following files:


I'm including a sample compiler output for reference.  NOTE: This is not from unedited code, so it may not be complete.  I can roll-back and provide such output if necessary to troubleshoot the issue.

1>------ Build started: Project: celestia, Configuration: Debug Win32 ------
1>Build started 15/03/2014 11:13:03 AM.
1>InitializeBuildStatus:
1>  Touching "Debug\celestia.tlog\unsuccessfulbuild".
1>ClCompile:
1>  frustum.cpp
1>  cmdparser.cpp
1>  shadermanager.cpp
1>src\celengine\shadermanager.cpp(2511): error C3861: 'max': identifier not found
1>src\celengine\shadermanager.cpp(2520): error C3861: 'max': identifier not found
1>src\celengine\shadermanager.cpp(2566): error C2039: 'max' : is not a member of 'std'
1>src\celengine\shadermanager.cpp(2566): error C3861: 'max': identifier not found
1>  simulation.cpp
1>  solarsys.cpp
1>src\celengine\solarsys.cpp(938): error C3861: 'max': identifier not found
1>src\celengine\solarsys.cpp(938): error C3861: 'min': identifier not found
1>  Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:09.64
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
15/03/2014 11:13:13 AM: System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder(Project project)
15/03/2014 11:13:13 AM: System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at EnvDTE.Properties.Item(Object index)
   at MadsKristensen.EditorExtensions.ProjectHelpers.GetRootFolder(Project project)

I also note the following from within the util.h header file, which addresses usage of the min() & max() calls specifically:

From l.24 of util.h:

#ifdef _WIN32
// The Windows header files define min and max macros. We prefer the min and
// max templates from STL because they don't result in unexpected multiple
// evaluations of arguments. In order to use them, we need to set NOMINMAX
// to prevent namespace pollution by the Windows macros.
#define NOMINMAX
#endif

(I found this strange since the .cpp files causing the issues discussed here both exhibit 'using std' statements!)

Any/all help here appreciated!

Gratefully,
R. Ross Holder
(ross.holder@outlook.com)


-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Mailvelope v0.7.0
Comment: Email security by Mailvelope - http://www.mailvelope.com

xsFNBFKeWJ8BEACkqXJuyuaL3+mUfprdEofXnWvOxrPQQ05w/5WU4RTvyjCm
1uIaalO57VYJEwnvMifyEwbuz+mcR1nERC4HAldcOKEO5+TCP9mEZO0GCli2
qR8ELKLY3n6MSoglb4t9/IbihVcdFpk2jS8xstGdmxnIUmP2ratTv1fdiAlN
kohmDQq9nJWw8wE25FbrlDUb9yaWn4PzzpGfkeDi3xFJqTW4jlrKISOO1BIa
FrACZ4YwXRLZvka6mAdIitzFndykybIO3uDZqzwaZ5XN4+/JaiCf7iSrN9ZS
xWtW+dQn2XklKQscf9fSLSmD3LXI8sSuOYndSIBjcWdjoiL6t7MPaiQ7/xjZ
01fdMc7DPIPEVgIKjlTmL99ciLYo3dJW4XZT7ilEejilwQwEKZBEMnxngzkF
FhCRutAHW70d1KtzQzYfco/+6cUQOzyToj4G1I9K9tLLXqqd8uWQ7sJ/262x
QXyCXyle5Zv7sLKpFw2QkuPFoRNJ95z5Bcy1/mDyZBbmkQZwyWYjpxkPMoGl
KwkP8S+L5hk7cI68UcXIN3Xw3Vbd1h4CBJW/ORTFWlRoxHlf6OBGbQPP1u5Y
nmLn5EuXmye1mNQobUATJa1GZda7pAXtj0fZscJmEYousryKrLKfZL7wYStH
B3GepTTr5t4YF5hjXGhKYqtiSK0C1A42V44EWwARAQABzSJSb3NzIEhvbGRl
ciA8cm9zc0BhcHByZWZhY3RvcnkuY2E+wsFcBBABCAAQBQJSnljhCRDylNBb
22TeIgAAYakP/2yOEVPXLU2CpYprWcfFdkXZRvlbcRRvVY71eyLD773NNwan
IAGVYUQmx/aSdSefq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