How can I know the return value of gcc?
For example, I have one c file, test.c, and I simply run gcc test.c
in terminal. It can report if current compile meet some errors, but how can I know the return value of this time compile process of gcc?
Now I know 1
means has error, but 0
will return not only warning but also compile OK, how can I if there is error. If I use -Werror
, it may stop compile, I don't want to stop compile