divyang4481 / rcf-cpp

Automatically exported from code.google.com/p/rcf-cpp
0 stars 0 forks source link

Building on MSVC 10.0 fails #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to compile RCF.cpp with MSVC 10.0

What is the expected output? What do you see instead?
Successful compilation

What version of the product are you using? On what operating system?
rcf-cpp 1.2
Boost 1.42
Visual Studio 2010 32bit with MSVC 10.0 on Windows 7 64-bit.

Please provide any additional information below.
Log attached. There are also some warnings.

Original issue reported on code.google.com by desktop...@gmail.com on 19 Apr 2010 at 5:30

Attachments:

GoogleCodeExporter commented 9 years ago
With Visual Studio 10 - 64 Bit everything seems to be fine.
The problem is the RCF_MIN/MAX macros. _cpp_min/max are only uses if "min" is 
not 
defined. Mybe adding NOMINMAX to your preprocessor defines solves the problem.

Original comment by SirAnnTh...@googlemail.com on 25 Apr 2010 at 4:23

GoogleCodeExporter commented 9 years ago
Looks like Microsoft has changed a few things around _cpp_min/_cpp_max. For 
now, you 
can work around it by opening /include/RCF/Tools.hpp, find the definitions of 
RCF_MIN/
RCF_MAX and replace them with:

#define RCF_MIN (std::min)
#define RCF_MAX (std::max)

Original comment by jarl.lin...@gmail.com on 27 Apr 2010 at 5:47

GoogleCodeExporter commented 9 years ago

Original comment by jarl.lin...@gmail.com on 26 May 2010 at 1:06