I get error: invalid lvalue in assignment errors when trying to compile code with gcc 4.0+, this code previously compiled fine with gcc 3.x
I'm not a c nor a c++ programmer so do not understand this enough to fix it.
Could someone offer solutions for the following snippets that spawn the errors?
Each of these lines gives the error.
I appreciate any help
I'm not a c nor a c++ programmer so do not understand this enough to fix it.
Could someone offer solutions for the following snippets that spawn the errors?
Each of these lines gives the error.
Code:
(int) mAttr |= (1<<attr);
(int) mAttr &= ~(1<<attr);
(int)mForeCol = code - 30+Black;
I appreciate any help