GCC Error messages
Gabriel Dos Reis
gdr@integrable-solutions.net
Thu Sep 2 20:38:00 GMT 2004
Luke Liu <LLiu@manh.com> writes:
| Hi,
| I run gcc compiler with the following messages,
|
| gcc -Wall -g -c junk.cpp -o junk
| junk.cpp:3:19: MyInc.h: No such file or directory
| junk.cpp:6: warning: ISO C++ forbids declaration of `main' with no type
| junk.cpp: In function `int main()':
| junk.cpp:7: `print' undeclared (first use this function)
| junk.cpp:7: (Each undeclared identifier is reported only once for each
| function it appears in.)
|
| The gcc reports warning messages with keyword "warning", but does not report
| error messages with keyword "Error". Is there any way for gcc to do this for
| error messages?
| Any helps?
You did not say which version of GCC you're using and what is your
testcase. Please use http://gcc.gnu.org/bugzilla/ for problem report.
GCC-3.3.x and GCC-3.4.x both report errors with "error:" prefix.
-- Gaby
More information about the Gcc
mailing list