cygwin mno-cygwin XOpenDisplay crash (on XP)
Collet Sylvie
sylvie.collet@geomath.fr
Mon Mar 29 19:25:00 GMT 2004
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
More information about the Cygwin-xfree
mailing list