[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

messed up error messages from gcc



I typically keep my environment pretty stripped down, and so it may
turn out that I'm missing some package that causes the following
problem.  But I've not yet been able to figure it out.  I'm hoping the
masses out here will immediately recognize the problem as ``Oh yes,
you need ... ''



Running testing.


gcc -v shows:
gcc version 4.3.4 (Debian 4.3.4-6)


$ cat t.c
void foo(void) {
  bar();
}
$ gcc -Wall -Werror t.c
cc1: warnings being treated as errors
t.c: In function â:
t.c:2: error: implicit declaration of function â



I expect something closer to:
cc1: warnings being treated as errors
t.c: In function 'foo':
t.c:2: warning: implicit declaration of function 'bar'




Any thoughts?

Thanks,
mrc


Reply to: