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

Re: messed up error messages from gcc



On Wed, Dec 02, 2009 at 10:36:20AM -0800, Mike Castle wrote:
> 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 ... ''

I'd suspect some locale issue.

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

Could you please try running LC_ALL=C gcc -Wall -Werror t.c and let us
know if that solves the issue?

Thanks.

Kumar


Reply to: