I'm trying to use the /O2
optimization for my project. I checked that the release configuration was enabled (Solution->Properties->Configuration Properties->Configuration->Release) and set Debug Information Format to /Zi
but now I don't know what to do for this error.
The optimization setting Maximize Speed (/O2) is incompatible to the Basic Runtime Checks setting of Code Generation.
To change the settings for Basic Runtime Checks:
Solution -> Properties -> Configuration Properties -> C/C++ -> Code Generation -> Basic Runtime Checks
Set it to "Default", and it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With