Saturday, May 22, 2010

Using the g++ compiler, what is the difference between compiling C++ code with -Wall and -Werror?

They are not related. -Wall enables a lot of warnings for picky, easily avoided details that some want and some don't want. -Werror turns all warnings into errors to keep a compile from succeeding if there are any warnings or errors.


No comments:

Post a Comment