C中的所有错误和警告 [英] all errors and warnings in C

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

问题描述

如果您将所有关于

的错误和警告发送到语言C我将非常感谢


谢谢

解决方案

prasanna写道:

如果您将所有关于
的错误和警告发送到语言C $ b $我将非常感激b

警告和错误取决于所使用的编译器。只有C标准

决定什么是正确的C,它并不关心实际的错误

消息是编译器产生的。

谢谢




Igmar


" prasanna" < SV ********** @ indiatimes.com>在消息中写道

news:11 ****************************** @ localhost.ta lkaboutprogramming。 com ...

如果您将关于
的所有错误和警告发送到语言C



,我将非常感谢语言标准要求实施为某些语言规则违规发出

a诊断消息。

未指定此类消息的实际文本。 I.e.

每条消息都可以简单地例如"!ERROR" ;. "警告和QUOT;

根本不需要。大多数实现提供了一些

意味着警告和错误,每个都有自己的。

请查阅您的文档。

-Mike


"人员Prasanna" < SV ********** @ indiatimes.com>写道:

如果您将所有关于
的错误和警告发送到语言C



我将非常感谢恐怕你的问题没有多大意义。


特定的编译器可能会列出所有错误和警告

它可以产生的消息,但它将与另一个编译器可以生成的

消息不同。编译器供应商不会通常提供这样的列表,因为它们不太可能有用。

无论如何,关于特定编译器的问题都是偏离主题的在这里。


(用C语言编程时可以犯的错误数量为

当然,无限制。)


-

Keith Thompson(The_Other_Keith) ks***@mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *> < http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。


i will be very thankful if you sent all the errors and warnings regarding
to the language C

thank you

解决方案

prasanna wrote:

i will be very thankful if you sent all the errors and warnings regarding
to the language C
Warnings and errors depend on the compiler used. The C standard only
dictates what is correct C, it doesn''t care what the actual error
messages are what a compiler produces.
thank you



Igmar


"prasanna" <sv**********@indiatimes.com> wrote in message
news:11******************************@localhost.ta lkaboutprogramming.com...

i will be very thankful if you sent all the errors and warnings regarding
to the language C



The language standard requires an implementation to issue
a diagnostic message for certain language rule violations.
The actual text of such messages is not specified. I.e.
every message could be simply e.g. "ERROR!". "Warnings" are
not required at all. Most implementations do provide somewhat
meaninful warnings and errors, and each will have their own.
Consult your documentation.
-Mike


"prasanna" <sv**********@indiatimes.com> writes:

i will be very thankful if you sent all the errors and warnings regarding
to the language C



I''m afraid your question doesn''t make much sense.

A particular compiler might have a list of all the error and warning
messages it can produce, but it''s going to be different from the
messages another compiler can produce. Compiler vendors don''t
typically provide such lists, since they''re not likely to be useful.
In any case, questions about specific compilers are off-topic here.

(The number of mistakes you can make while programming in C is, of
course, unlimited.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


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

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