public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Bill McEnaney" <bill@rkirkpat.net>
To: kf <kf@iki.fi>,
	gcc-help@gcc.gnu.org, 	"Bill McEnaney" <bill@rkirkpat.net>
Subject: Re: Error messages I don't understand
Date: Wed, 09 May 2007 16:12:00 -0000	[thread overview]
Message-ID: <20070509160406.5C8C071A11@saratoga.rkirkpat.net> (raw)

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
> > %^D\b\bexit
> >
> > 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

             reply	other threads:[~2007-05-09 16:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09 16:12 Bill McEnaney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-05-09 19:33 Bill McEnaney
2007-05-09 16:29 Bill McEnaney
2007-05-09 16:14 Bill McEnaney
2007-05-09 15:19 Bill McEnaney
2007-05-09 15:31 ` kf
2007-05-09 15:33 ` John Love-Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070509160406.5C8C071A11@saratoga.rkirkpat.net \
    --to=bill@rkirkpat.net \
    --cc=gcc-help@gcc.gnu.org \
    --cc=kf@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).