can't open XDisplay

arun arun2202@hotmail.com
Thu May 2 01:41:00 GMT 2002


Hello,

I am compiling  a linux XWindows application in win98 using cygwin/xfree86.
But when I execute the program, opening XDisplay fails, due to the following
code fragment

 dpy = XOpenDisplay(getenv("DISPLAY"));
 if (dpy == 0)
 {
      fprintf(stderr,"Can't open X display\n");
  exit(1);
}


what could be the problem???

thanx....



More information about the Cygwin-xfree mailing list