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]

cygwin 1.5.3-1 and xfree devel


When compiled under cygwin 1.5.3-1, the following hello world Motif
program gets a SEGV in XtVaAppInitialize.  Harold, what's your time
table for a 1.5.3 built Xfree so I can test and update lesstif?  Thanks.

#include <Xm/Xm.h>
#include <Xm/Label.h>

XtAppContext context;
XmStringCharSet char_set=XmSTRING_DEFAULT_CHARSET;

main(argc, argv)
int argc;
char *argv[];
{
    Widget toplevel, label;
    XmString S;

    /* Create an application shell. */
    toplevel = XtAppInitialize(&context,"",NULL,0,&argc,argv,NULL,
        NULL,0);

    /* Create the Label widget. */
    label = XmCreateLabel(toplevel,"label",NULL,0);
    S = XmStringCreateLtoR("Hello World!", char_set);
    XtVaSetValues(label,
        XmNlabelString, S,
        NULL);

    XtRealizeWidget(toplevel);
    XtAppMainLoop(context);
}

(gdb) r
Starting program: /home/ford/xtest.exe

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? () from
(gdb) bt
#0  0x00000000 in ?? () from

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444


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