Error: invalid lvalue in assignment
I'm trying to compile irmp3-v0.5.6 but I have the following error.
irmp3mod.c: In function ‘mod_sendmsg’: irmp3mod.c:103: error: invalid lvalue in assignment make[2]: *** [irmp3mod.o] Error 1 Here's where I think the problem is: Code:
// append message to queue Here's the function: Code:
void mod_sendmsg (int msgtype, char *msg) |
That code is maybe a little too "clever" :)
I would first look at the type of m->next and mod_msgs and make sure they are still the same as the type of newmsg. If they are, I would try rewriting this line: m ? m->next : mod_msgs = newmsg; as this: if (m) { m->next = newmsg; } else { mod_msgs = newmsg; } which should be equivalent. "invalid lvalue" means the left-hand-side of an assignment (the lvalue) is messed up. It could be a gcc version issue as you surmised. Good luck, Jeff |
All times are GMT -5. The time now is 01:07 AM. |