美文网首页
VS 2017 IDE compiler option" /pe

VS 2017 IDE compiler option" /pe

作者: 玻璃缸里的自游 | 来源:发表于2019-03-15 13:35 被阅读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用这个开关编译也会挂掉。

    相关文章

      网友评论

          本文标题:VS 2017 IDE compiler option" /pe

          本文链接:https://www.haomeiwen.com/subject/ppplmqtx.html