This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: cygwin mno-cygwin XOpenDisplay crash (on XP)
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 29 Mar 2004 19:26:22 +0200 (MEST)
- Subject: Re: cygwin mno-cygwin XOpenDisplay crash (on XP)
- References: <F4B6079068303A47B63E1D244F6CB59C2EB8EE@brmail>
- Reply-to: cygwin-xfree at cygwin dot com
On Mon, 29 Mar 2004, Collet Sylvie wrote:
> 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 ;
> }
Which bug? The error messages or at least a detailed error description
is important
> 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.
Cygwin/X relies on cygwin. I doubt you can compile your app without
the cygwin support.
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723