Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!emory!gatech!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 table limit error Keywords: f2c tablelimit -Nn802 Message-ID: <1991Jan28.220830.28252@cs.cmu.edu> Date: 28 Jan 91 22:08:30 GMT References: <785@utrcu1.UUCP> Sender: netnews@cs.cmu.edu (USENET News Group Software) Reply-To: mwm@VACATION.VENARI.CS.CMU.EDU (Mark Maimone) Followup-To: comp.lang.fortran Organization: Carnegie Mellon University Lines: 36 ------------------------------------------------------------------------------ > Using f2c, i have the following problem: > $ f2c tesfil.f > testfil.f: > testfil: > Compile error line 13 of ../include/paramdefs.ii0: Too many names. > Table limit now 401. > Try recompiling using the -Nn802 option > Questions: > - where does the error message come from ? (f2c, LEX, YACC, ...)? > - how do i solve this problem ???? ------------------------------------------------------------------------------ The error message tells you that f2c's symbol table is full. You have two ways to correct the problem: BAD: Adjust the constant MAXHASH in defs.h to increase the table size, recompile and reinstall f2c. GOOD: Following the advice in the error message, run f2c exactly as you did before, but with the additional command-line option "-Nn802" (you needn't use quotes). F2c has several (admittedly undocumented) command-line options for increasing the length of its fixed-length tables. Whenever such a table fills up, it will suggest that you try again, using twice the current limit. If you want a list of *all* the command-line options, check out the definition of static arg_info table[] in main.c. ---------------------------------------------------------------------- Mark Maimone phone: (412) 268 - 7698 Carnegie Mellon Computer Science email: mwm@cs.cmu.edu grad student, vocal jazz and PDQ Bach enthusiast