简体   繁体   中英

How to prevent Visual Studio 2008 C compiler from stopping when some errors occur?

I want to see how many errors I have in my source code but compiler stops when it encounters some errors (but not all).

Is there a way to make Visual Studio to continue compiling until it finds all errors in code?

(Visual Studio 2008 is mandatory)

EDIT: I need to do this for the following reason. We have a c99 code base but customer demands an older version which Visual Studio 2008 should be able to compile. Thus we want to see how many errors occur because of the difference between c99 and c89 (not c 89 but a version in between for Visual Studio 2008).

" Thus we want to see how many errors occur because of the difference between c99 and c89 "

I don't think you can do that. For example:

int example(void)
{
    getsomething();
    int i;            // <== invalid in C89

The above example is just 1 error but will generate lots of errors because i is not declared in the remainder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM