syntax error with XSetWindowAttributes help
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 Code:
XSetWindowAttributes *pwmatt; 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 |
never mind, apparently it was just being fussy because it was feeling left out of the main function were most of the action was taking place (tho i don't know what kinda of action was going on..)
anyways, .. now its a problem with "ld" it keeps exiting with error status 1 all i know is it says it cant find "-lX11" ... i use gentoo with trusted path execution (does this make a difference?) is there some special trick to get it to compile? i use Code:
gcc prog.c -o prog -lX11 |
check this out
http://xander.ncl.ac.uk/game/index1.php |
thanks, i got the program to compile now by following a makefile i found in that link... now to get past the "segmentation fault" .. owell... time to get a debug program, some more tea, and maybe a fan :)
thanks again gizmo_thunder |
All times are GMT -5. The time now is 12:25 AM. |