Hallo there, I recently purchased the O'Reilly Xlib Programming Manual with the aim of learning how to write X applications. My problem though is I can't get basicwin.c to compile up at all! I even downloaded the O'Reilly version and that didn't work. The O'Reilly version complains that it can't load Xlib.h although my compile line reads gcc -g -lX11 -o basicwin basicwin.c I tried it with a -DSYSV also but to no effect. My version has fits complaining about undeclared variables. I suspect I need to include Xfuncproto.h but I'm not certain.
My main question though is, should the example work exactly as written in the book or do I need to generate a GNU/Linux version? If so how? If the book's example should work then what am I doing obviously wrong? I can post the compilation error messages once I've retyped the source, I got annoyed and blew it away. Are there any newgroups I should subscribe to for this sort of information? thanks