gpt4 book ai didi

c - X11/Xlib.h : No such file or directory in Windows 8

转载 作者:行者123 更新时间:2023-12-02 08:55:32 63 4
gpt4 key购买 nike

Netbeans 的编译器读取:

gcc -c -g -Wall -I/usr/openwin/include graphics.c
graphics.c:13:22: fatal error: X11/Xlib.h: No such file or directory
#include < X11/Xlib.h>
compilation terminated.
make.exe": * [graphics.o] Error 1"

尽管网站上有人询问有关 X11/Xlib.h 的问题,但我发现没有一个适用于 Windows(因为现有的解决方案似乎都适用于 Mac 操作系统)。我对编程真的很陌生,所以欢迎任何启发!

最佳答案

X 服务器通常只能在类 Unix 操作系统上找到。 Windows 的图形编程通常使用完全不同的界面。

也就是说,有/适用于 Windows 的 X 服务器 - 不过,您需要安装一个及其关联的 SDK,才能对 X 进行任何编译。

关于c - X11/Xlib.h : No such file or directory in Windows 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25858970/

63 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com