Xref: utzoo comp.windows.x.motif:3181 comp.windows.x:37112 comp.unix.ultrix:7463 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!rutgers!soleil!mlb.semi.harris.com!dave.mis.semi.harris.com!dcb From: dcb@dave.mis.semi.harris.com (Dave Brillhart) Newsgroups: comp.windows.x.motif,comp.windows.x,comp.unix.ultrix Subject: Problems compiling a 3 line Motif program!!! Keywords: Motif, Ultrix Message-ID: <1991Jun3.124344.4245@mlb.semi.harris.com> Date: 3 Jun 91 12:43:44 GMT Sender: news@mlb.semi.harris.com Reply-To: dcb@dave.mis.semi.harris.com (Dave Brillhart) Organization: Digital Equipment Corporation Lines: 51 Nntp-Posting-Host: dave.mis.semi.harris.com I've finally found time to start programming in the wonderful world of Motif. A friend recommended the Marshall Brain Tutorials (a great tip). I can't seem to get the first "Hello World" program to compile... I'm sure it's some kind of setup problem. (BTW, I can compile most other x programs except mxrn. The only commonality I could find was mxrn also uses .) I'm running Ultrix 4.1 on a DECstation 5000. I loaded OSF/Motif 1.1. That MAY be the problem right there - I've read 4.1 is based on R3 intrinisics while Motiif 1.1 is R4??? Any conformation on that? What follows is the program and error message (same thing happens with or without the commented lines): Thanks in advance for and comments, Dave Brillhart Harris Semiconductor Melbourne, FL ======================================================= #include #include #include main(int argc, char *argv[]) { Widget toplevel; Arg al[10]; int ac=0; toplevel = XtInitialize(argv[0],"",NULL,0,&argc,argv); /* XtSetArg(al[ac++],XmNlabelString,XmStringCreate("hello",XmSTRING_DEFAULT T_CHARSET)); msg = XtCreateManagedWidget("msg",xmLabelWidgetClass,toplevel,al,ac); */ XtRealizeWidget(toplevel); XtMainLoop(); } =========================================================== ccom: Error: /usr/lib/DXM/lib/Xm/Xm.h, line 2017: syntax error typedef XtPointer (*XmResourceBaseProc)(); -------------------^ ccom: Error: /usr/lib/DXM/lib/Xm/Xm.h, line 2017: function returns illegal type typedef XtPointer (*XmResourceBaseProc)(); -----------------------------------------^ ccom: Error: /usr/lib/DXM/lib/Xm/Xm.h, line 2020: syntax error XmResourceBaseProc base_proc; ---------------------^ (ccom): /usr/lib/DXM/lib/Xm/Xm.h, line 2020: cannot recover from earlier errors: goodbye! XmResourceBaseProc base_proc; ----------------------------------^