The document is archived and information here might be outdated
Compiler Error C2220
Visual Studio 2005
Error Messagewarning 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
Fix the problem that caused the warning.
Compile at a lower warning level.
Compile without /WX.