Skip to content

Instantly share code, notes, and snippets.

@gohan-kai
Created November 26, 2012 08:37
Show Gist options
  • Save gohan-kai/4147220 to your computer and use it in GitHub Desktop.
Save gohan-kai/4147220 to your computer and use it in GitHub Desktop.
Compiler Error C2220
Compiler Error C2220 - warning treated as error - no 'file' file generated
Fixes(Any One) -
1. Compile at lower warning level - "Properties->C/C++->General->Warning Level"
2. Compile without "/WX" - "Properties->C/C++->General->Treat Warning As Errors"
3. Suppress the Error - #pragma warning ( disable : 4996 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment