This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygwin mno-cygwin XOpenDisplay crash (on XP)


Hi every body,
 
 
I have a bug during the execution of this code on XP and I don't know what's
wrong....
                                                                         
#include <X11/Xlib.h>
#include <iostream>
 
int main(int argc, char** argv) {
std::cerr << "1" << std::endl;
  Display* dpy = XOpenDisplay(NULL);
std::cerr << "2" << std::endl;
  return 0 ;
}
 
 
g++ -mno-cygwin -I/usr/X11R6/include -c main.c 
g++ -mno-cygwin -o a.exe main.o -L/usr/X11R6/lib -lX11-6.dll
 
 
In fact, I have a Java Main which call a library that contains the
source of a X application in C++. That why I use -mno-cygwin but
when I use it, XopenDisplay doesn't work well... All is OK without the 
-mno-cygwin flags during the compilation.
 
Could you, please, help me because I have no more ideas on this
subject?
 
Thanks
 
Sylvie

 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]