This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error messages I don't understand
- From: "Bill McEnaney" <bill at rkirkpat dot net>
- To: kf <kf at iki dot fi>, gcc-help at gcc dot gnu dot org, "Bill McEnaney" <bill at rkirkpat dot net>
- Date: Wed, 9 May 2007 10:04:06 -0600 (MDT)
- Subject: Re: Error messages I don't understand
Aha! The program is full of casts, and I was right when I thought I
needed to run an old version of gcc. But I wouldn't dare try to rewrite
the program. Thanks.
> Probably you have some legacy code that uses some casting tricks in
> the left-hand side of the operand... But lvalue casting was a gcc
> extension I think, and has been removed from the latest versions...
> I.e. the code probably was 'correct' w.r.t. gcc at some point in
> history, but never legal C... You have to use older gcc version, or
> rewrite your code.
>
> > Bill
> >
> > Script started on Sat 28 Apr 2007 12:30:11 PM EDT
> > %cd source
> > %gmake
> > gcc -O2 -c -o command.o command.c
> > command.c: In function 'c_interp':
> > command.c:55: error: invalid lvalue in assignment
> > command.c: In function 'c_condition':
> > command.c:190: error: invalid lvalue in assignment
> > command.c:194: error: invalid lvalue in assignment
> > command.c: In function 'c_doall':
> > command.c:215: warning: incompatible implicit declaration of built-in
> > function
> > 'strlen'
> > gmake: *** [command.o] Error 1
> > %^Dexit
> >
> > script done on Sat 28 Apr 2007 12:30:35 PM EDT
> >
> >
> >
> >
> > ________________________________________________________________
> > Please visit a saintly hero.
> > http://www.jakemoore.org
> >
> > "Pro-choice?" Click here:
> > http://www.abortionno.com/Resources/pictures.html
> >
> >
>
>
________________________________________________________________
Please visit a saintly hero.
http://www.jakemoore.org
"Pro-choice?" Click here:
http://www.abortionno.com/Resources/pictures.html