title: VS2013 C++ How to get same binary in Release mode as Debug mode
body: <p>I am working with a Visual Studio 2013 C++ Application.  This application has always been used internally in Debug mode only. There is a good reason for this that I will not get into.  Now, we would like to distribute this application and therefore we must compile it in Release mode due to MS VS EULA.  The application runs some complex mathematical functions.  To avoid any additional testing I would like to get the same binary in Release as in Debug to ensure the output is the same in Debug and Release builds.</p>
  
  <p>In Visual Studio I created a new Configuration that was based off of the Debug configuration.  I removed the #_DEGUG from the pre-processor defintion and I change the "Runtime Library" from <strong>Multi-threaded Debug DLL (/MDd)</strong> to <strong>Multi-threaded DLL (/MD)</strong>
  All other options are copied from the Debug configuration. (ie there is no optimization etc)</p>
  
  <p>The results are that the exe is slightly different and the results that are output when running the application are different.  </p>
  
  <p>Question:  Is there any way to get the same binary in Release mode as in Debug mode?  Or some other way to acheive this without violating the MS EULA.</p>
  
  <p>Thank!
  Pete </p>