This is the mail archive of the
mailing list for the GCC project.
Explanation of compiler warnings and errors
- From: Yusuf Pisan <ypisan at ics dot mq dot edu dot au>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 31 May 2002 11:33:56 +1000
- Subject: Explanation of compiler warnings and errors
For experienced users, one line compiler warnings and error
messages is sufficient. Unfortunately, students learning C/C++
have a difficult time to deciphering such messages.
Are there any detailed help pages that explain the gcc/g++ error
messages, provide sample code which would cause the error message?
Such a resource would be very useful to beginners and might even
benefit more experienced users. Visual C++ has such a resource as a
part of the MSDN Library, but that has its own set of quirks.
Any help on finding such a resource or ideas on how to construct it
would be much appreciated.
Ps: It is possible to use VC++ or simplified version of C/C++ with
a more tailored compiler for beginning students, but I believe the
effort in maintaining such a toolkit and the need to eventually
move to gcc/g++ is more trouble than building additional support to
,--_|\ Yusuf Pisan
/ \ firstname.lastname@example.org http://www.ics.mq.edu.au/~ypisan/
\_,--._* Department of Computing
v Macquarie University, Sydney Australia 2109
This message is intended for the addressee named or in the case of
mailing lists people who are subscribed directly or indirectly to
the mailing list. This message may contain confidential information,
but I would not suggest reading it backwards to find any hidden
messages. If you are not the intended recipient, stop reading now,
ponder about how this message came to be in your mailbox and whether
you are indeed the intended recipient after all. Destroy all copies
of the message and notify the sender. The sender is usually the
person listed on the From line, unless the message is spoofed. Ask
the sender to send you a fresh copy if the sender meant to send it
to you all along. When the sender asks which message you refer to,
inform the sender that you cannot reveal any information about a
message where you may not have been the intended recipient. Ask the
sender to resend all messages from last week instead. Views
expressed in this message are those of the individual sender, may or
may not result in commercially viable applications suitable for
household use. The views expressed in this message are not
necessarily the views of CIA, KGB, MI5, FBI, Macquarie University or
the Prime Minister of Australia, although they may individually or
as a group agree or disagree with the views expressed. If this
message is found in an abandoned mailbox, please return to sender
for future safekeeping.