openMotif X11 progs:
openMotif X11 progs:
- Subject: openMotif X11 progs:
- From: "Trevor Goodson" <email@hidden>
- Date: Thu, 16 Jan 2003 11:13:04 -0500
From: email@hidden
To: email@hidden
Subject: FWD: openMotif X11 progs:
Date: Thu, 16 Jan 2003 10:55:29 -0500
>===== Original Message From email@hidden =====
Hello all:
We are compiling simple apps on Mac OS X to test whether our Motif code
will work.
Here is one "Hello World" app:
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <Xm/Xm.h>
#include <Xm/Label.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
Widget shell, msg;
XtAppContext app;
XmString xmstr;
shell = XtAppInitialize(&app,"Memo",NULL,0,
&argc, argv, NULL, NULL, 0);
xmstr = XmStringCreateLtoR ( "Hello World", XmFONTLIST_DEFAULT_TAG);
msg = XtVaCreateManagedWidget ("message",
xmLabelWidgetClass, shell,
XmNlabelString,
xmstr, NULL);
XmStringFree( xmstr) ; /* Free the compund string */
XtRealizeWidget(shell);
XtAppMainLoop(app);
}
% cc memo.c -o -lXm -lXt -lX11 -L/usr/X11R6/lib/ -I/usr/X11R6/include/
ld: Undefined symbols:
_XmStringCreateLtoR
_XmStringFree
__XmStrings
_xmLabelWidgetClass
Can anyone tell me why I get these link errors?
Is there a missing library or an incorrectly named library? Thanks for any
feedback!
Richard Travis Rose \n
Type: Student \n
Department: Egr & Comp Sci \n
Class: Undergraduate Student \n
Major: Computer Science \n
Email: email@hidden
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.