Re: Error messages I don't understand

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

 



On 5/9/07, Bill McEnaney <bill@xxxxxxxxxxxx> wrote:
Hi, everybody,

Since I'm a beginner in C, please help me revise command.c to make it
compile cleanly.  I don't how much of that 503-line program you'll need
to read, so I'm omitting it from this note. But if you'll estimate how
much of it I should show you, I'll show you that much of it.

By the way, I'm running the latest version of gcc on a Sunblade 100
workstation.

Thanks so much for your help.

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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux