gcc错误消息存储库
我花了很多时间使用 Microsoft 编译器 cl,发现它在编译消息中给出的错误代码(如 C1234、C5432 等)非常有用。当我遇到一个我不熟悉的错误时,我可以轻松地在 MSDN 上查找它并获得其含义的更详细解释。
现在我几乎只使用 gcc,我发现我怀念这个功能。当我在 gcc 中遇到一些错误时,我似乎花了很多时间在谷歌上搜索错误文本以获取有关它的信息。是否有一些 gcc 错误消息存储库,其中每一条错误消息都有更详细的解释?
I've spent a lot of time using the Microsoft compiler cl and found that the error codes that it gives in compile messages (like C1234, C5432, etc.) can be very useful. When I get a error I'm unfamiliar with I can easily look it up on MSDN and get a more detailed explanation of what it means.
Now I'm using gcc almost exclusively and I find that I miss that feature. When I get some error in gcc I seem to spend a lot of time googling for the text of the error for information about it. Is there some repository of gcc error messages where each one is explained in more detail?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道任何完整的存储库包括完整的解释,但对我自己来说:
;
但编译器不能说”)。I'm not aware of any complete repository including full explanations, but for myself:
;
but the compiler can't tell").我发现通过谷歌搜索确切的错误消息(忽略发生变化的内容,例如变量/函数名称)可以得到很好的结果。有时,将错误消息的全部或部分用引号引起来会有所帮助,以便将其视为句子而不是单词的集合。
此页面解释了一些更基本的错误消息。
如果你遇到一些特别复杂的事情,你无法弄清楚,你当然可以随时询问SO。
I find that Googling the exact error message (omitting things that change, such as variable/function names) gives pretty good results. It sometimes helps to enclose all or part(s) of the error message in quotes so that it is treated as a sentence rather than a collection of words.
This page explains some of the more basic error messages.
If you encounter something particularly convoluted that you have trouble figuring out, you can of course always ask on SO.