SAFESEH and Visual Studio

Many of us dont hugely enjoy recompiling libaries. I for one who only use 3 large and a handful of small, causing me to cringe at the idea of recompiling to include a new feature or worse a new platform. 

So when I hit:

error LNK2026: module unsafe for SAFESEH image.

So after looking around for a solution I found there is just a simple switch you can turn off to allow an old library to be used

SAFESEH Visual Studio

Hidden in Linker --> Advanced -> Image Has Safe Exception Handlers you can set this to No and recompile and your code work again.

Gravatar
Posted by Stuart James Thursday, October 31, 2013 2:08:00 PM Categories: C++ HowTo Visual Studio
Stuart James