title: Can I disable exceptions in STL?
body: <p>I want to disable exceptions in my C++ aplication, compiled under MSVC. I hve switched the option Enable C++ exceptions to NO, but I get warnings telling me to use the option  /Ehsc, which I dont want to. </p>
  
  <hr>
  
  <p>I do not have try/catch blocks in my code, but I use STL. I have found that using macro definition _HAS_EXCEPTIONS=0 should disable the exceptions in STL, but I am still getting warning like:</p>
  
  <hr>
  
  <p><code>warning C4275: non dll-interface class 'stdext::exception' used as base for dll-interface class 'std::bad_typeid'
  see declaration of 'stdext::exception'
  see declaration of 'std::bad_typeid'</code></p>
  
  <hr>
  
  <p>Is there any way how to switch off the exceptions is STL?</p>
  
  <p>Note: In my code I want to switch off the RTTI options, too. I get the same warnings no matter if the RTTI is on or off.</p>