views:

139

answers:

1

Is there a comprehensive list of error/warning messages for the g++ compiler available online?

I'm looking for something similar to the MSDN documentation which describes what each message means and possibly has some sample code which demonstrates the conditions which would cause such an error.

I've looked at the GCC online documentation, but I don't see even a simple enumeration of all possible messages.

+2  A: 

Unfortunately, there is no such list, only the GCC source code itself defines the messages.

Some of those messages are exercised by the GCC testsuite, so you can find some examples there, if you download the source code of GCC. Of course they are written as functional and regression tests for GCC and not as a documentation for the user.

Laurynas Biveinis