Compiler Error C2220
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Error C2220

Error Message

warning treated as error - no object file generated

/WX tells the compiler to treat all warnings as errors. Since an error occurred, no object or executable file was generated.

To fix by using the following possible solutions

  1. Fix the problem that caused the warning.

  2. Compile at a lower warning level.

  3. Compile without /WX.

© 2016 Microsoft