How to install Xlib on Windows (eclipse , c language)

我只是一个虾纸丫 提交于 2020-02-05 06:11:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!