Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!VACATION.VENARI.CS.CMU.EDU!mwm From: mwm@VACATION.VENARI.CS.CMU.EDU (Mark Maimone) Newsgroups: comp.lang.fortran Subject: Re: f2c experience Message-ID: <1990Dec7.221925.23443@cs.cmu.edu> Date: 7 Dec 90 22:19:25 GMT References: <1990Dec7.055000.29126@ariel.unm.edu> Sender: netnews@cs.cmu.edu (USENET News Group Software) Reply-To: mwm@VACATION.VENARI.CS.CMU.EDU (Mark Maimone) Organization: Carnegie Mellon University Lines: 18 It turns out that the problem Brian had with a "real" identifier was exactly that. "REAL REAL" got translated into "real real;" (where real is a type defined in f2c.h), which the compiler then rejected. A simple fix, which will be incorporated in the next f2c release, is to add the names of all types that are typedef'ed in f2c.h to the list of c_keywords in f2c (names.c, "c_keywords" definition). This will correct the above example to: "real real_;", which the C compiler will accept. We included most keywords here but forgot about the standard types. Sigh.... Thanks for the bug report! ---------------------------------------------------------------------- Mark Maimone phone: (412) 268 - 7698 Carnegie Mellon Computer Science email: mwm@cs.cmu.edu grad student, vocal jazz and PDQ Bach enthusiast