3
votes

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!

1
Wait: openwin ? how old is the source you're trying to build? (and as BadZen says, it's not going to work on windows without some extra software)John3136
Not with gcc (with MSVC) but on Windows: stackoverflow.com/q/22283867/2994596. Rational for error is still relevant (though the solution for using those old sources may not be)SleuthEye
Well I think the source is pretty old...it's actually one of my introductory projects on how to debug a large program.Nen
Must have been on a Sun workstation.Michael Petch

1 Answers

3
votes

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.