本文介绍了如何在Windows(Eclipse,C语言)上安装Xlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我需要使用它进行图形化编程GUI,用于CS 349 uwaterloo的首次分配。我在Google搜索结果中看到随机的Xlib.h和Xutil.h文件。但是没有任何地方说我如何从某个网站上安装或下载Xlib。我什至尝试将Xlib.h复制粘贴到我在空白项目中创建的新文件中,它有100多个错误。那么...我该怎么办?

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?

推荐答案

最简单的方法是安装-您将获得gcc和其他工具(binutils,make,autotools)以及X服务器和客户端库。

Simpliest way is to install cygwin - you'll get gcc + other tools (binutils, make, autotools) and X server and client libraries.

如果不需要C / C ++语言,我建议您查看或客户端-两者都易于安装并且根本不需要X运行时(它们实现了X11有线协议自己)。

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).

这篇关于如何在Windows(Eclipse,C语言)上安装Xlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 20:03