VS 2017 IDE compiler option" /permissive-"
发布网友
发布时间:2024-10-21 11:09
我来回答
共1个回答
热心网友
时间:2024-10-21 16:13
在尝试用vs2017 ide编译detours的过程中,发现syelogd.exe居然编译不过。
经一番努力,终于知道,这是VS IDE 2017新加的一个compiler选项搞的鬼。
我们看看微软给的解释:
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用这个开关编译也会挂掉。