Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!osf.org!dbrooks From: dbrooks@osf.org Newsgroups: comp.windows.x.motif Subject: Re: Problems compiling a 3 line Motif program!!! Message-ID: <9106031822.AA18344@penge.osf.org> Date: 3 Jun 91 18:22:40 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 36 In article <1991Jun3.090241@wsl.dec.com>, klee@wsl.dec.com (Ken Lee) writes: |> include files in /usr/include/X11 are for the XUI intrinsics. The |> Motif intrinsics (X11R4) include files are in /usr/lib/DXM/lib/Xt/X11 |> (DXV instead of DXM for VAXes), so you should put a |> -I/usr/lib/DXM/lib/Xt in your Makefile. And I wrote: |> If you add "-D_NO_PROTO" to your cc line, you'll be able to get over this |> hurdle. I prefer Ken's answer :-) It seems that DEC's product does not have the problem to which I was referring, if you do the right thing. My advice still holds if you are using our generic source, 1.1.1 or greater, and MIPS cc 1.31. Here, I get the following errors with prototyping on; they are not the same as those originally posted: ccom: Error: /usr/include/Motif1.1.1/Xm/Xm.h, line 1764: redeclaration of XmColorProc XmColorProc XmSetColorCalculation(XmColorProc proc); --------------------------------^ ccom: Error: /usr/include/Motif1.1.1/Xm/Xm.h, line 1764: syntax error XmColorProc XmSetColorCalculation(XmColorProc proc); --------------------------------^ ccom: Error: /usr/include/Motif1.1.1/Xm/Xm.h, line 1765: redeclaration of XmColorProc XmColorProc XmGetColorCalculation(void); --------------------------------^ ccom: Error: /usr/include/Motif1.1.1/Xm/Xm.h, line 1984: syntax error XmResourceBaseProc base_proc; ---------------------^ (ccom): /usr/include/Motif1.1.1/Xm/Xm.h, line 1984: cannot recover from earlier errors: goodbye! XmResourceBaseProc base_proc; ----------------------------------^ -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks