Xref: utzoo comp.windows.x.motif:3235 comp.windows.x:37262 comp.unix.ultrix:7537 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!lhdsy1!yzarn From: yzarn@lhdsy1.chevron.com (Philip Yzarn de Louraille) Newsgroups: comp.windows.x.motif,comp.windows.x,comp.unix.ultrix Subject: Re: Problems compiling a 3 line Motif program!!! Keywords: Motif, Ultrix Message-ID: <932@lhdsy1.chevron.com> Date: 6 Jun 91 15:32:05 GMT References: <1991Jun3.124344.4245@mlb.semi.harris.com> Followup-To: comp.windows.x.motif Organization: Chevron Oil Field Research, La Habra, CA. Lines: 41 In article <1991Jun3.124344.4245@mlb.semi.harris.com> dcb@dave.mis.semi.harris.com (Dave Brillhart) writes: >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? > >=========================================================== >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; > ----------------------------------^ Yes, Ultrix 4.1 is X11R3 but the X librairies delivered with the software are *supposed* to be X11R4 compatible (?, what is that supposed to mean?) Motif 1.1 is X11R4. The third error signifies that the compiler does not know anything about XmResourceBaseProc. Probably because it is only found in R4 of X. Why don't you try *linting* your code before compiling it, you may get more detailed messages. (I always lint before I compile, saves me lots of time.) -- Philip Yzarn de Louraille Internet: yzarn@chevron.com Research Support Division Unix & Open Systems Chevron Information & Technology Co. Tel: (213) 694-9232 P.O. Box 446, La Habra, CA 90633-0446 Fax: (213) 694-7709