I am getting the following error while building a project. Even though I am setting the property "treat warning as errors" to "NO" I am getting this one:
error C2220: warning treated as error - no object file is created.
Can any one Help me Resolving This One? Thanks in Advance.
The documentation for C2220 suggests compiling at a lower warning level. It also shows that the warning treated as error option is implemented as a compiler flag: /WX. So you could search your .vcproj file for that text and manually remove it from the file.
Probably you forgot to add an header. Just where you get the first warning and see in what header file is defined.
Regards
I got "error C2220: warning treated as error - no object file is created." in below code.
Once I changed datatype of total to int , the error was resolved.
int colNum=0;
unsigned int total=123;
for (colNum=0;colNum<total;colNum++) {
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With