简体   繁体   中英

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

The compiler of Netbeans reads:

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"

Although there are questions asked about X11/Xlib.h on the site I found none which applies for Windows (as the existing solutions all just seem to work on Mac os). I am really new to programming, so any enlightenment is welcomed!

X Servers are generally found only on Unix-like operating systems. Graphical programming for Windows generally uses a completely different interface.

That said, there /are/ X servers for windows - you'll need to install one, and it's associated SDK, to do any compiling for X, however.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM