pwebb@yoyodyne.ncsa.uiuc.edu (07/11/90)
I'm using the Athena Widget Set and I can't get the list widget to behave. I've got a form which contains a viewport, 3 dialog boxes, 3 command widgets and a label. I want the list widget to be the scrollable child of the viewport widget. I'm running on a System V machine, and haven't had any trouble with X (I've got V11R4) up to this point. When I try to create a list widget, a segmentation fault occurs in the ResetList routine. (dbx) where ResetList() at 0x5b54 `List`Initialize(0xefff5c4, 0x63258) at 0x5d3f CallInitialize(0x41fe8, 0xefff5c4, 0x63258, 0xefff91c, 0x3) at 0x13e97 _XtCreate(0x4101d, 0x0, 0x41fe8, 0x62428, 0x5b98c, 0xefff91c, 0x3, 0x426e4) at 0x140fd XtCreateWidget(0x4101d, 0x41fe8, 0x62428, 0xefff91c, 0x3) at 0x14259 XtCreateManagedWidget(0x4101d, 0x41fe8, 0x62428, 0xefff91c, 0x3) at 0x142ff This is the call I make: argNum = 0; XtSetArg(argList[argNum], XtNborderWidth, 0); argNum++; XtSetArg(argList[argNum], XtNlist, NULL); argNum++; XtSetArg(argList[argNum], XtNdefaultColumns, 1); argNum++; list = XtCreateManagedWidget(VIEW_LST, listWidgetClass, view, argList, argNum); And when I try to compile List.c, so that I can step through it with the debugger to see where the error is occuring, I get a linker error: cc -g -DDEBUG -o reformat window.o cmdline.o error.o utils.o reformat.o callback.o usage.o init_widgets.o List.o /usr6/pwebb/bin/src/clib.a -lXaw -lXmu -lXext -lXt -lX11 ld: Undefined symbol _XtWindowOfObject _XawInitializeWidgetSet *** Error code 1 This is my link error when compiling with List.c. If I don't try to compile List.c, all goes well (except for the segv, which goes away if I don't try to create the list widget). Anybody have any idea what is going on? This is my first "real" X program, and I'm still somewhat at a loss. Thanks. Peter. pwebb@ncsa.uiuc.edu