delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/05/10/14:01:22

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
From: John Wright <john AT wacontrols DOT com>
To: Eli Zaretskii <eliz AT gnu DOT org>, djgpp AT delorie DOT com
Subject: Re: Xlib example program compile error
Date: Thu, 10 May 2012 12:32:28 -0500
User-Agent: KMail/1.13.6 (Linux/2.6.38-15-generic; KDE/4.6.5; i686; ; )
References: <14d4867cb19a21120924dee9678cea6d AT wacontrols DOT com> <83fwba0ww3 DOT fsf AT gnu DOT org>
In-Reply-To: <83fwba0ww3.fsf@gnu.org>
MIME-Version: 1.0
Message-Id: <201205101232.28922.john@wacontrols.com>
X-Cloudmark-Analysis: v=1.1 cv=6p5BqBp3VK6p0jBnMk5o/Dt6mLrqbqrhBjCrXBaOSr4= c=1 sm=0 a=uxf98jMwF4QA:10 a=XHXv9rt40tcA:10 a=86DmMMQbovAA:10 a=KQjHTzX6FrYA:10 a=Q9fys5e9bTEA:10 a=4H-IRWPiAAAA:8 a=Z1cg82zx2YjyvamvPHoA:9 a=BUbErT0W8L0RuU3DOsQA:7 a=PUjeQqilurYA:10 a=DXir6YwdHicA:10 a=SmuP-63KY08A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
Reply-To: john AT wacontrols DOT com

I think there is a typo or a code has been accidentally left out of this 
example. Now, that I think about it, I don't think the structure variable that 
all the undeclared members refer to has been initialized. I will go back an 
look at the previous example. The difference is that he creates a "xwins.h" 
header file, and a xwinsutil.c file which both will be added to in following 
chapters. As I read line by line down through the files, everything looks good 
to me though. The compiler errors are not helping me except for two messages 
which have to do with unknown or declared union or struct. It should be 
though...

I've got about 10 books on X Window programming. Several are from Johnson & 
Reichard, and the one I am referring to is by Neba Barkakati. I've got 
Barakakati's latest edition w/source coming in a few days. Maybe it will 
provide the answer. 

I bought all of these back in 1990, at that time I was working with SCO ODT. 
Back then learning was an expensive investment, it alway took another $500 or 
$1000 to make something complete. It has always been my goal to learn how to 
program with X, but I never could find the time. Now, it's 20+ years later and 
I study it every night. I'm going to move to a tool kit as soon as I've had 
enough of Xlib. I've got a good project to develop for, so I'm anxious to take 
what I've learned and start building.

I will find a public place to post to, or anyone can send me a private email 
address to john AT wacontrols DOT com. 

Thanks!



On Wednesday, May 09, 2012 12:02:52 AM you wrote:
> > Date: Tue, 08 May 2012 23:42:54 -0500
> > From: "John Wright" <john AT wacontrols DOT com>
> > 
> > 
> > I cannot track down the compile problem in this program. The program
> > demonstrates how to setup an event handler context management structure
> > to better manage event handling for multiple child windows. The problem
> > seems to be related to the local header file "xwins.h" which has a
> > #ifndef #else declarations. This program is a continuation of a previous
> > example that compiles fine. Most of the compile errors are related to
> > undeclared structure members. Storage is not being allocated in some
> > way?? I'm sure this is simple, but I just can't see it.
> > 
> > Eventually, I want to port and compile some of these examples using DJGPP
> > V1.12 and Xlib200 stuff.
> > 
> > This is X11R3 code. I'm compiling with gcc 2.7.2.3 using RedHat 6.22. I
> > included xctest.tar.gz. If it gets excluded from this, then I will be
> > glad to forward to whoever is interested in helping me with this
> > problem. The "xwin.h" and compiler error messages are not too long, so I
> > can post them if it is necessary.
> 
> It got excluded.  If DJ can figure out why and fix that (if it's some
> problem, as opposed to expected behavior), then fine.  Otherwise, can
> you upload it to some public file uploading site out there and post
> here a link to that place?

- Raw text -


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