Rajshekhar said:
Where can i get the complete details about the all types of errors and
warnings that a C-compiler pops up..??
The manual that came with your compiler. A compiler may warn about
anything; there are a couple of problems that it must warn about, but it
need not stop after producing the warning and the Standard doesn't make
any demands about the contents of the warning. This is a valid message:
"File draw.c, line 14: Good grief, your code is ugly!"
and so is this, even as the only message the compiler ever produces of
its own accord:
"Error detected. Terminating compile."
In neither case is the compiler required not to compile anything, not
even in the latter case. Of course, a compiler that _claimed_ to abort
the compile, and then continued to write a program, is of very bad
quality; but the Standard, at least, doesn't forbid it.
Since the problems (or even non-problems) compilers warn about _may_
vary so widely, they do indeed vary. There is, therefore, no one list of
all messages a compiler may produce, nor for which of these it might
halt compilation. There should, however, (as a QOI issue; this is TTBOMK
not required by the Standard, either) be one for your compiler, and it
should have come with that compiler's documentation.
There is only one exception to this, and it is an explicit request by
the programmer: #error <message>. This _must_ produce an error message
that includes the message, and it is not allowed to succesfully compile.
Even there, all the Standard requires is that the message includes
<message>. It may vary from
<message>
(as the only message produced by that compile), to
<a whole bucketload of other warnings>
"Oh, btw, you asked for " <message>
<another bucketload of warnings>
Richard