The windows.h
header file (or more correctly, windef.h
that it includes in turn) has macros for min
and max
which are interfering.
You should #define NOMINMAX
before including it.
More Related Contents:
- Signed/unsigned comparisons
- How do I see a C/C++ source file after preprocessing in Visual Studio?
- Export all symbols when creating a DLL
- How to set up Google C++ Testing Framework (gtest) with Visual Studio 2005
- What are some reasons a Release build would run differently than a Debug build [closed]
- Automatically stop Visual C++ 2008 build at first compile error?
- How to link winsock.lib?
- How do I print to the debug output window in a Win32 app?
- How to use typelists
- “Step over” when debugging multithreaded programs in Visual Studio
- Resolve build errors due to circular dependency amongst classes
- Why must a short be converted to an int before arithmetic operations in C and C++?
- How do I iterate over cin line by line in C++?
- Should I use static_cast or reinterpret_cast when casting a void* to whatever
- How to convert an enum type variable to a string?
- c++ vector size. why -1 is greater than zero
- Vectors in Arduino
- Properly print utf8 characters in windows console
- Template static variable
- How to link to dynamic boost libs?
- Using Quaternions for OpenGL Rotations [duplicate]
- linking with clang++ on OS X generates lots of symbol not found errors
- What is the purpose of the “final” keyword in C++11 for functions?
- Why explicitly delete the constructor instead of making it private?
- problems with Move constructor and Move overloaded assignment operator?
- Concatenating strings doesn’t work as expected [closed]
- How can it be useful to overload the “function call” operator?
- Creating OpenGL context without window
- Why the sequence-operation algorithms predicates are passed by copy?
- Generate N random numbers within a range with a constant sum