public inbox for cygwin-xfree@sourceware.org help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk> To: cygwin-xfree@cygwin.com Cc: cwcarlsonc@cox.net Subject: Re: glwDrawingAreaWidgetClass Date: Tue, 07 Oct 2014 13:50:00 -0000 [thread overview] Message-ID: <5433EF95.6050703@dronecode.org.uk> (raw) In-Reply-To: <5433509B.8050805@cox.net> On 07/10/2014 03:31, Chris Carlson wrote: > I've discovered that the constant glwDrawingAreaWidgetClass is set to > 0. It's supposed to be defined as: > > WidgetClass glwDrawingAreaWidgetClass=(WidgetClass)&glwDrawingAreaClassRec; Can I ask you to please provide some more details as to how you made this discovery? If you do this: $ cat glw-test.c #include <Xm/Xm.h> #include <GL/GLwDrawA.h> #include <stdio.h> int main() { printf("glwDrawingAreaWidgetClass %p", glwDrawingAreaWidgetClass); } then you could reach that conclusion: $ gcc glw-test.c ; ./a glwDrawingAreaWidgetClass 0x0 but this isn't testing correctly as glwDrawingAreaWidgetClass isn't marked as extern in GLwDrawA.h $ cat glw-test.c #include <Xm/Xm.h> #include <stdio.h> extern WidgetClass glwDrawingAreaWidgetClass; int main() { printf("glwDrawingAreaWidgetClass %p", glwDrawingAreaWidgetClass); } $ gcc glw-test.c -lGLw ; ./a glwDrawingAreaWidgetClass 0x5bd8e3640 > Is it broken? I don't know. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
next prev parent reply other threads:[~2014-10-07 13:50 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-10-07 2:32 glwDrawingAreaWidgetClass Chris Carlson 2014-10-07 13:50 ` Jon TURNEY [this message] [not found] ` <0DqF1p0240YP9AS01DqG2B> 2014-10-13 1:50 ` glwDrawingAreaWidgetClass Chris Carlson 2014-10-14 19:37 ` glwDrawingAreaWidgetClass Jon TURNEY
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=5433EF95.6050703@dronecode.org.uk \ --to=jon.turney@dronecode.org.uk \ --cc=cwcarlsonc@cox.net \ --cc=cygwin-xfree@cygwin.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).