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]

Re: cygwin mno-cygwin XOpenDisplay crash (on XP)


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


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