Objective C LValue required as unary '&' operand
- by Bob
Hello! In my code, I get this error when I try to get a pointer to my class property.
(I wrote a small *.OBJ file translator in Python, discarding the normals)
CODE:
//line: line of text
const char *str = [line UTF8String];
Point3D *p1, *p2, *p3;
p1 = [Point3D makeX:0 Y:0 Z:0];
p2 = [Point3D makeX:0 Y:0 Z:0];
p3 = [Point3D makeX:0 Y:0 Z:0];…