This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC Error messages


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?
Thanks!

Luke Liu
Sr. Analyst | N-Tier Core Services & Performance
Manhattan Associates, Inc.
Office: 678-597-6923
<http://www.manh.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]