I use the armadillo library in visual C++ to take care of some matrix and vector operations. Here's what one of my cpp files looks like:
#include "stdafx.h"
#include <cmath>
#include <armadillo>
#include "buildRotMatrix.h"
using namespace std;
using namespace arma;
//code
When I compile I get the following warning:
1>CL : warning : detected 'min' and/or 'max' macros and undefined them;
1>CL : warning : you may wish to define NOMINMAX before including any windows header
I don't actually use min and max functions in the code but i'd like to get rid of the warnings. adding #define NOMINMAX hasn't worked and I haven't found other solutions. It's not clear to me where the conflict comes from since my understanding from google searches is people get it from including windows.h.