Re: NNTPC: Problem with 0.92 and SGI

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

 



Hi 'Ray Bellis', you wrote...
> 
> > Hi,
> > 
> > I get the following error, when I try to 'make' it on a Silicon-Graphics
> > INDY with IRIX 5.3 and cc.
> > 
> > cfe: Error: list.c, line 162: This expression is not an lvalue.
> >                 ((r==1)? p2->right: p2->left) = node;  
> >                 ------------------------------^
> 
> Anyway, the solution is to make the code say this:
> 
>   *(((r==1)? &p2->right: &p2->left) = node;
> 
> Turning the two possible results from ?: into pointers makes them into
> lvalues which can then be accessed using the * operator.

Next error:
cfe: Error: list.c, line 162: Syntax Error
                *(((r==1)? &p2->right: &p2->left) = node;  
                ----------------------------------------^
*** Error code 1 (bu21)

???

Thanks,
Achim

-- 
Joachim Gothe, Networks/Broadcast-Video  FH-Hannover, FB Kunst&Design
e-mail: achim@kd.fh-hannover.de          Germany D-30419 Hannover
http://chaplin.kd.fh-hannover.de         Herrenhaeuser Str.8
Privat: +49 511 797515                   Work:+49 511 9296-557, Fax -510


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux