On 08/24/2017 03:46 AM, Pialy Ghosh wrote:
Hi All, Thanks for your response. The code snippet is like below (void *)ShMem = shmat(ShId, 0, 0); Error in this line: lvalue required as left operand of assignment. From GCC 3.4 lvalue casting is removed. Is there any way to solve this error without changing the code? If we can use compiler 4.9.2 without any code modification. Enabling this support by adding any flag, if any?
I don't think there is a way. At my last job years ago we migrated a large code base from an ancient GCC (I think 3.4.5) to a more recent version and this was among the errors that led to many changes. But in the long run, investing in modernizing a code base pays off. Martin