473,513 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Info about Errors ,warnings..!

Hi all,
Where can i get the complete details about the all types of errors and
warnings that a C-compiler pops up..??

any pdfs or links or books to refer....!
plz help me out..

Regards,
Rajshekhar

Nov 14 '05 #1
2 1362
Rajshekhar <ra*********@gmail.com> wrote:
Hi all,
Where can i get the complete details about the all types of errors and
warnings that a C-compiler pops up..??
Most likely you'll find these in the manuals of the compiler in use.
There are to many to actually write one documentation that fits all.

any pdfs or links or books to refer....!
plz help me out..


Most compilers have specific newsgroups where you might get help.

--
Z (zo**********@web.de)
"LISP is worth learning for the profound enlightenment experience
you will have when you finally get it; that experience will make you
a better programmer for the rest of your days." -- Eric S. Raymond
Nov 14 '05 #2
"Rajshekhar" <ra*********@gmail.com> wrote:
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
Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2836
by: Michael G | last post by:
I am getting some errors/warnings that I don't understand. This code is in a Java app that uses Swing J Components with an ActionListener. The code/errors/warnings follow. Thanks for any help,...
30
2142
by: prasanna | last post by:
i will be very thankful if you sent all the errors and warnings regarding to the language C thank you
2
1263
by: Bern McCarty | last post by:
We have a large source base that we normally compile with /WX (treat all warnings as errors) and /W3. I would like to add the /Wp64 switch to this mix so that developers see the /Wp64 warnings but...
6
1977
by: Angelos | last post by:
Hello, I would like to develop an independent class that will store Messages, Warnings and Errors. Messages and Warnings Will be displayed to the user. Errors will be loged in a database or/and...
10
1913
by: dbuchanan | last post by:
Hello, >From time to time my vb2005 form disappears and is replaced by the following errors. Rebuilding the application never helps. However the errors never affects the operation of my...
1
1767
by: John Dalberg | last post by:
I converted a working web site project to a web application project and I am getting a bunch of warnings and compile errors. All code using .NET's profile class is giving an error. example...
1
1644
Ajm113
by: Ajm113 | last post by:
Ok, when I was new to this I had this problem and I bet a lot of other people did when they where new to PHP and Mysql. So this mite be your question; "Ok, no errors or warnings in mysql and php so...
0
2309
by: Larry Lard | last post by:
Recently we've been on a code quality drive and have eliminated all compilation warnings from our code. To preserve this state, we've turned 'Treat warnings as errors' to 'All' in all our projects...
0
1714
by: WebCM | last post by:
PDO offers 3 modes of displaying errors: - silent mode - no errors - warnings - Warning: - exceptions - Exception: Which of them is the fastest and the most adequate for applications like CMS...
0
7391
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.