1 Mar 2007 04:20
newbie xlib/xt question
Agostino Ruscito <ruscito <at> gmail.com>
2007-03-01 03:20:29 GMT
2007-03-01 03:20:29 GMT
apologies for my poor English) I just installed cygwin.
I'm trying to compile a program under cygwin, but I got some errors.
This is the program :
#include <Xm/Xm.h> /* Standard Motif definitions */
#include <Xm/Label.h> /* Motif Label Widget */
main(argc, argv)
int argc;
char **argv;
{
XtAppContext app_context;
Widget topLevel, hello;
/* Register the default language procedure */
XtSetLanguageProc(NULL, (XtLanguageProc)NULL, NULL);
/* Initialize the Xt Intrinsics */
topLevel = XtVaAppInitialize(
&app_context, /* Application context */
"XHello", /* Application class */
NULL, 0, /* command line option list */
&argc, argv, /* command line args */
NULL, /* for missing app-defaults file */
NULL); /* terminate varargs list */
/* Create a widget */
hello = XtVaCreateManagedWidget(
"hello", /* arbitrary widget name */
xmLabelWidgetClass, /* widget class from Label.h */
(Continue reading)
RSS Feed