error D8016: '/clr' and '/EHs' command-line options are incompatible

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am trying to convert a native c++ application into c++/cli. Now I get this error. The solution seems simple: just change the command-line options.
The strange thing, however, is that this option (Enable C++ exceptions) is not set to /EHs, but to /EHa. I have tried every option (even /EHs) but I keep getting this error.
Even stranger, in another build configuration (Release build), I have the same combination of command-line options (/clr and /EHa), and this compiles just fine.
I tried rebuilding the project and closing and opening Visual Studio, but that doesnt help either.
Any help is appreciated.

View the full article
 
Back
Top