Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command line error D8016: '/O2' and '/RTC1' command-line options are incompatible

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.

like image 627
justHelloWorld Avatar asked May 03 '16 15:05

justHelloWorld


1 Answers

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.

enter image description here

like image 57
whatever Avatar answered Oct 20 '22 21:10

whatever