4 out of 13 rated this helpful - Rate this topic

Compiler Error C2220

warning treated as error - no 'file' file generated

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

Possible solutions

  • Fix the problem that caused the warning.
  • Compile at a lower warning level.
  • Compile without /WX.
Did you find this helpful?
(1500 characters remaining)