Hi, Eljay, Now I know what's going wrong. My workstation is complaining because the programmer tried to assign a value to an expanded macro, not to a variable. Since another gcc-help poster mentioned old, nonstandard casting tricks that my worstation won't understand when it uses the current version of gcc's C compiler, I'll just compile the program with an old version of that compiler. See what I get for always being up to date. :) Cheers, Bill > Hi Bill, > > What part of the error message don't you understand? > > This kind of statement uses a valid lvalue, x: > > int x; > x = 2 + 3; > > This kind of statement uses an invalid lvalue: > > 5 = 2 + 3; > > An lvalue is a value that can be assigned a value. The term "lvalue" means > left value -- a value that can be on the left side of the assignment > expression. > > The code has a non-lvalue on the left side of the assignment expression. > > Sincerely, > --Eljay > > > > > On 5/9/07 10:57 AM, "Bill McEnaney" <bill@xxxxxxxxxxxx> wrote: > > > > > Hi, John, > > > > Thanks. Although it does help, I'm afraid it repeats what the messages > > say. I thought I would compile Progol with an older version of gcc's C > > compiler because I've read transcripts of Progol sessions. Since I have > > read them, some compiler had compiled Progol. > > > > By the way, I'm trying to compile an interpreter for the Progol > > inductive-logic-programming language. I do logic programming, > > functional programming, and very little C programming. > > > > Thanks again. > > > > Bill > >> Hi Bill, > >> > >>> command.c: In function 'c_interp': > >>> command.c:55: error: invalid lvalue in assignment > >> > >> You have an invalid lvalue in your assignment on-or-near line 55. > >> > >>> command.c: In function 'c_condition': > >>> command.c:190: error: invalid lvalue in assignment > >>> command.c:194: error: invalid lvalue in assignment > >> > >> You have two more invalid lvalue in your assignments on-or-near lines 190 > >> and 194. > >> > >>> command.c: In function 'c_doall': > >>> command.c:215: warning: incompatible implicit declaration of > > built-in function > >> 'strlen' > >> > >> It appears you forgot to #include <string.h> at the top of your command.c > >> file. Or your source re-declares strlen in an incompatible way. > >> > >> HTH, > >> --Eljay > >> > >> > > > > ________________________________________________________________ > > 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