delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/16/21:21:56

From: gnuwin32 AT niteroi DOT gsfc DOT nasa DOT gov (GNU Win32)
Subject: Re: XCreateSimpleWindow and SIGSEGV
16 May 1998 21:21:56 -0700 :
Message-ID: <199805161930.PAA25178.cygnus.gnu-win32@woodmore.gsfc.nasa.gov>
References: <19980514105221 DOT 19657 DOT qmail AT hotmail DOT com>
Mime-Version: 1.0
To: lglynn AT hotmail DOT com (Glynn Leo)
Cc: gnu-win32 AT cygnus DOT com

Leo,

> 
> Thanx to Earnie 
> I've got my program Compiling 
> I found that XCreateSimpleWindow is giving me 
> SIGSEGV fault Anyone have the same problem
> Have compiled with mmalloc,downloaded the Latest Binaries on NT
> and search archives but to no avail
> Also have X-Server and DISPLAY set
> (Do get the warning message 
>     WinMainCRTStartup ; defaulting to 00401000 )
> 
> Anyone see any problem with the following ?

My guess is that you are not using the correct headers.
I saved your code to a file named xtest.c and compiled it like this
(egcs-1.02, NT4 SP3):

gcc -I/usr/X11R6.3/include -o xtest xtest.c /usr/X11R6.3/lib/libX11.a

and I get no SIGSEGV. However, if I compile it as:

gcc  -o xtest xtest.c /usr/X11R6.3/lib/libX11.a

it builds allright but gives the same SIGSEGV you got. When you
omit the  -I/usr/X11R6.3/include you are likely using the
X headers part of tcl/tk80, therefore the pointer incompatibility.

-- 
Arlindo da Silva    
dasilva AT alum DOT mit DOT edu




-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019