hello, I'm trying to get a small program i made in c to compile (right now even the code looks like a house built with cardboard and thumbtacks by a blind man)
anyways when i try to compile i keep getting this error
Code:
prog.c:14: error: syntax error before '->' token
anyways, heres lines 12 to 19 :
Code:
XSetWindowAttributes *pwmatt;
pwmatt->background_pixmap = ParentRelative;
pwmatt->background_pixel = ParentRelative;
pwmatt->border_pixel = BlackPixel(display, screennum);
pwmatt->win_gravity = NorthWestGravity;
pwmatt->override_redirect = true;
pwmatt->event_mask = ButtonPress|ButtonRelease;
line 14 is the first "pwmatt->" part, i can move that line with any of the lines below it and it still says its on line 14.. so I'm guessing theres something wrong with all of them
i replace the "->" with "." and it says the error is with the "." token instead
any help? i feel like i tried everything but no luck