<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Is there a specific reason to use /EHsc and not /EHs for windows compilation?</div><div>The difference is that /EHsc, which is used now, tells the MSVC that extern "C" functions can't throw exceptions.<br></div><div>I am trying to use libjpeg and use C++ exception instead of setjmp/longjmp, by having libjpeg call a C++ function that throws an exception.  With /EHs it works fine, but with /EHsc, incorrect code will be generated and the exception will not be caught.</div><div><br></div><div>Thanks,</div><div><br></div><div>Lucian<br></div></div></body></html>