GNU C++ error messages [closed]

2019-01-25 13:39发布

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.

1条回答
Summer. ? 凉城
2楼-- · 2019-01-25 14:14

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.

查看更多
登录 后发表回答