Mail Archives: djgpp/2012/05/10/14:01:22
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 -