Hi Everyone!
I'm completeley new here and already got a problem ;D.
I just started to get into Xlib Programming and one the first function I called there was an issue:
When I try to run the XOpenDisplay function it either returns "undefined reference to 'XOpen Display'" without the -lX11 flag or it can't find -lX11
I checked if I got the necessary libery and stuff... I googled for hours, but all tips didn't help... Can anybody help me please?
Code:
#include<X11/Xlib.h>
int main()
{
Display *dpy;
if ((dpy = XOpenDisplay(NULL)) == NULL)
{
printf ("Error");
return 1;
}
}
This is kept really simple, I know, but it still doesn't work!