GNU C++ 错误消息 [英] GNU C++ error messages

查看:45
本文介绍了GNU C++ 错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在线提供 g++ 编译器的错误/警告消息的完整列表吗?

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

我正在寻找类似于 MSDN 文档的内容,该文档描述了每条消息的含义,并且可能有一些示例代码来演示导致此类错误的条件.

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.

我查看了 GCC 在线文档,但我什至没有看到一个简单的枚举所有可能的消息.

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

推荐答案

很遗憾,没有这样的列表,只有 GCC 源代码自己定义了消息.

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

其中一些消息由 GCC 测试套件执行,因此如果您下载 GCC 的源代码,您可以在那里找到一些示例.当然,它们是作为 GCC 的功能和回归测试编写的,而不是作为用户文档.

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.

这篇关于GNU C++ 错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆