Hi
I have a problem when running homemade motif apps on a linux box.
The compiling and linking runs smooth, but when I tried to run the program
(that is quite a big and messy one) I got:
Error: No realize class procedure defined
After 12 hours' bughunting I tried to run this simple program:
#include <X11/Intrinsic.h>
#include <Xm/Xm.h>
#include <Xm/Label.h>
main(int argc, char *argv[])
{
Widget toplevel, msg;
Arg al[10];
int ac;
toplevel=XtInitialize(argv[0],"",NULL,0,&argc,argv);
ac=0;
XtSetArg(al[ac],XmNlabelString,
XmStringCreate("hello",XmSTRING_DEFAULT_CHARSET)); ac++;
msg=XtCreateManagedWidget("msg",xmLabelWidgetClass,toplevel,al,ac);
XtRealizeWidget(toplevel);
XtMainLoop();
}
I compile it with:
$ gcc -o test -L /usr/X11R6/lib64 -lXt -lX11 test.c -lXm
$./test
Error: No realize class procedure defined
Could somebody please tell me where to start looking? Is this redhat
related? Or Xfree? Or Motif? Is a system upgrade sufficient? I do not have
root access so it's a bit of a project convincing the admins to run
up2date but if I could get it working I'm shure I could talk them into it.
----------------------------------
System specs:
$ uname -a
Linux lxws012 2.4.21-20.EL #1 SMP Wed Aug 18 20:34:58 EDT 2004 x86_64
x86_64 x86_64 GNU/Linux
$rpm -q redhat-release
redhat-release-3WS-12.3
$rpm -qa |grep openmotif
openmotif-2.2.3-3.RHEL3
openmotif-2.2.3-3.RHEL3
openmotif21-2.1.30-8
openmotif-devel-2.2.3-3.RHEL3
$rpm -q XFree86
XFree86-4.3.0-68.EL
Thanks alot.
/Johan
_______________________________________________
XFree86 mailing list
[email protected]
http://XFree86.Org/mailman/listinfo/xfree86