VS 2017 IDE compiler option" /pe

2019-03-15  本文已影响0人  玻璃缸里的自游

在尝试用vs2017 ide编译detours的过程中,发现syelogd.exe居然编译不过。

detourserror.jpg

经一番努力,终于知道,这是VS IDE 2017新加的一个compiler选项搞的鬼。


vsidecompileroption.jpg

我们看看微软给的解释:

By default, the /permissive- option is set in new projects created by Visual Studio 2017 version 15.5 and later versions.

Specify standards conformance mode to the compiler. Use this option to help you identify and fix conformance issues in your code, to make it both more correct and more portable.

The /permissive- option sets the /Zc:strictStrings and /Zc:rvalueCast options to conforming behavior. They default to non-conforming behavior. You can pass specific /Zc options after /permissive- on the command line to override this behavior.

Older versions of the SDK may fail to compile under /permissive- for various source code conformance reasons. The compiler and SDKs ship on different release timelines, therefore there are some remaining issues.

原来,微软自己的老sdk用这个开关编译也会挂掉。

上一篇下一篇

猜你喜欢

热点阅读