xlib6g-dev problem
Hi,
I have a problem I tried to compile the following c program:
#include <X11/StringDefs.h>
#include <X11/Intrinsic.h>
#include <X11/Xaw/Command.h>
void main(argc,argv)
int argc;
char **argv; {
Widget toplevel;
Widget command;
void quit();
toplevel = XtInitialize(argv[0],"simple",NULL, 0, &argc, argv);
command=XtCreateManagedWidget("press and die",commandWidgetClass,
toplevel, NULL, 0);
XtAddCallback(command,XtNcallback,quit, NULL);
XtRealizeWidget(toplevel);
XtMainLoop();
}
void quit(w,client,call)
Widget w;
XtPointer client;
XtPointer call; {
exit(0);
}
I typed:
$ gcc ki.c
I got he following message:
/tmp/ccc02603: In function `main':
/tmp/ccc02603(.text+0x1e): undefined reference to `XtInitialize'
/tmp/ccc02603(.text+0x33): undefined reference to `commandWidgetClass'
/tmp/ccc02603(.text+0x3e): undefined reference to `XtCreateManagedWidget'
/tmp/ccc02603(.text+0x52): undefined reference to `XtStrings'
/tmp/ccc02603(.text+0x5b): undefined reference to `XtAddCallback'
/tmp/ccc02603(.text+0x67): undefined reference to `XtRealizeWidget'
/tmp/ccc02603(.text+0x6f): undefined reference to `XtMainLoop'
Compilation exited abnormally with code 1 at Mon Jun 14 02:26:24
I would appreciate any help.
Thanks.
Robert Horvath
Reply to: