Solution
This message appears due to some of the project's properties. Since O2 optimization is incompatible with RTC1, you must verify this setting and try disabling it if it is enabled.
To do this, in Visual Studio go to your
Project » Properties (For Debug Configuration):
In the
Configuration Properties » C/C++ » Optimization tab set the value of
"Optimization" to
"Disable (/Od)"For some additional information on this error please see
this link to MSDN.