Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

/WX (Treat Linker Warnings as Errors)

/WX[:NO]

/WX causes no output file to be generated if the linker generates a warning.

This is similar to /WX for the compiler (see /w, /Wn, /WX, /Wall, /wln, /wdn, /wen, /won (Warning Level) for more information). However, specifying /WX for the compilation does not 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

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option into the Additional Options box.

To set this linker option programmatically

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.