Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.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: <9106031425.AA16832@penge.osf.org> Date: 3 Jun 91 14:25:27 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 31 In article <1991Jun3.124344.4245@mlb.semi.harris.com> you write: |> 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? If DEC is shipping Motif 1.1, they'll be shipping X11R4 Intrinsics. There Is No Alternative. |> What follows is the program and error message But you omitted the "cc" command :-) |> ccom: Error: /usr/lib/DXM/lib/Xm/Xm.h, line 2017: syntax error |> typedef XtPointer (*XmResourceBaseProc)(); |> -------------------^ (etc...) At 1.1.1, we (finally) implemented full ANSI prototyping. Although the Ultrix MIPS cc does prototyping, it doesn't quite match the ANSI requirements. If you add "-D_NO_PROTO" to your cc line, you'll be able to get over this hurdle. You might like to hack it into your imake templates, or even (I don't recommend this) your local Xm.h. I believe a Sun cc has the identical problem. -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks