问题
Ok, I need to use this for graphical programming, GUI, for cs 349 uwaterloo first assignment. I see random Xlib.h and Xutil.h files lying around on google search results. But no where does it say how I install or download Xlib from some website of something. I even tried to copy paste the Xlib.h onto a new files I created in my blank project and it has more than 100 errors. So... what do I do?
回答1:
Simpliest way is to install cygwin - you'll get gcc + other tools (binutils, make, autotools) and X server and client libraries.
If C/C++ language is not a requirement I suggest to look at python or javascript clients - both are easy to install and don't require X runtime at all (they implement X11 wire protocol themselves).
来源:https://stackoverflow.com/questions/20598416/how-to-install-xlib-on-windows-eclipse-c-language