'/RTC1' and '/O2' command-line options are incompatible
参考
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.