Here's my first *tif program:
#include <Xm/Xm.h>
#include <Xm/Label.h>
XtAppContext context;
XmStringCharSet char_set=XmSTRING_DEFAULT_CHARSET;
Widget toplevel, label;
main(argc,argv)
int argc;
char *argv[];
{
Arg al[10];
int ac;
toplevel = XtAppInitialize(& context, "", NULL, 0, &
argc, argv, NULL, NULL, 0);
// I left out further code here, because
// error occurs with the last statement above
}
When I compile, I get errors which look like this:
/usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3536):Shell.c:
undefined reference to '_SmcCloseConnection'
There are multiple errors. Same errors show up with
hello.c from O'Reilly book on Motif.
What's going on?
My current compile command:
gcc -I/usr/X11R6/include \
-I/usr/X11R6/lib \
-L/usr/X11R6/lib \
hello.c -o hello.c \
-lXm -lXt -lX11
I'm running Lesstif on Cygwin on XP machine.
Any help will be appreciated.
Gary
_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif