/WX (Treat Linker Warnings as Errors)
/WX[:NO]
Remarks
/WX causes no output file to be generated if the linker generates a warning.
This option is similar to /WX for the compiler. For more information, see /w, /W0, /W1, /W2, /W3, /W4, /w1, /w2, /w3, /w4, /Wall, /wd, /we, /wo, /Wv, /WX (Warning Level). However, specifying /WX for the compilation doesn't imply that /WX will also be in effect for the link phase; you must explicitly specify /WX for each tool.
By default, /WX is not in effect. To treat linker warnings as errors, specify /WX. /WX:NO is the same as not specifying /WX.
To set this linker option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
Select the Configuration Properties > Linker > Command Line property page.
Enter the option into the Additional Options box.
To set this linker option programmatically
- See AdditionalOptions.
See also
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ