This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
cygwin mno-cygwin XOpenDisplay crash (on XP)
- From: "Collet Sylvie" <sylvie dot collet at geomath dot fr>
- To: <cygwin-xfree at cygwin dot com>
- Date: Mon, 29 Mar 2004 15:01:51 +0200
- Subject: cygwin mno-cygwin XOpenDisplay crash (on XP)
- Reply-to: cygwin-xfree at cygwin dot com
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