title: error LNK2038: mismatch detected
body: <p>There are lots of questions on this issue, but I'm struggling to get the answers to work for me.  I have the specific error message:</p>
  
  <pre><code>gurobi_c++mdd2010.lib(Env.2010.omdd) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in DataHelper.obj
  </code></pre>
  
  <p>in visual studio 2010, in a release x64 build.  The Gurobi library is 3rd party software, and DataHelper is my class.  </p>
  
  <p>Setting <code>_ITERATOR_DEBUG_LEVEL=0</code> in DataHelper doesn't fix the problem, and I do not appear to be linking against 'debug' .lib or .dll in my files. <code>_SECURE_SCL</code> is not set in my files.</p>
  
  <p>I tried to set <code>_ITERATOR_DEBUG_LEVEL=2</code> in the preprocessor definitions, and I get:</p>
  
  <pre><code>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\yvals.h(113): fatal error C1189: #error :  _ITERATOR_DEBUG_LEVEL &gt; 1 is not supported in release mode.
  </code></pre>
  
  <p>Can anyone confirm the problem is on my side, or on the 3rd party side, and suggest any workarounds if it is the 3rd party library?</p>
  
  <p>Thanks
  Melanie</p>