I got the warning c318 (can't open file ...). I think, this should be an error. If I include a file, which does not exists, the project schould not compile.
May there is a way (option to the compiler) to convert particular warnings to errors? (e. g. w/ command line option "-Werror=C318", like gcc)?
If nothing from the included file is used, then it doesn't matter that it can't be found - does it?
So there's no reason for the build to fail in that case.
If stuff from the included file is used, then there will be "undefined"/"undeclared" errors for those cases, and the project will not build - as required.
If stuff from the included file is used, then there will usually be "undefined"/"undeclared" errors for those cases, and the project will not build - as required/hoped.
Before you object and say no, think about ALL possible scenarios.
I agree to the above post. It meets the point. But an option to treat particulary warnings as an error would be also fine...