[comp.lang.c] f2c table limit error

emmerik@utrcu1.UUCP (Emmerik P.J.L. van) (01/28/91)

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

The include files (including paramdefs.ii0) contain many PARAMETER
definitions.

I am using f2c version 27 june 1990, created on an APOLLO using
Domain/OS Version 10.1.

Questions:
 - where does the error message come from ? (f2c, LEX, YACC, ...)?
 - how do i solve this problem ????

Please respond by E-mail (preferably to emmerik@utwente.nl).

-- 
Pieter van Emmerik                    | Phone:  +31-74-483059
Hollandse Signaalapparaten b.v.       | FAX:    +31-74-425936
P.O.box 42                            | E-mail: emmerik@utwente.nl
7550 GD  Hengelo, The Netherlands     |         hp4nl!utrcu1!emmerik

emmerik@utrcu1.UUCP (Emmerik P.J.L. van) (01/30/91)

In article <785@utrcu1.UUCP>, emmerik@utrcu1.UUCP (Emmerik P.J.L. van) writes:
> 
> 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
> 
> I am using f2c version 27 june 1990, created on an APOLLO using
> Domain/OS Version 10.1.
> 
> Questions:
>  - where does the error message come from ? (f2c, LEX, YACC, ...)?
>  - how do i solve this problem ????

Most answers told me just to add a -Nn802 option to the command as
suggested in the message (-Nn802 being an undocumented f2c option).

The reason this was not obvious to me (in fact i tryed it) is that i
used the f2c sources created on an Apollo system (the sources include a
YACC file) compiled an runned them on a VAX/VMS system.
Becouse VAX/VMS systems do not handle upper and lowercase characters the
way UNIX systems do, f2c did not get the message.
Fiddeling a bit the following worked:
  f2c:==$f2c.exe
  f2c "-Nn802" filename

  f2c -Nn802 filename
results in the message:
  Error on line 0: Invalid flag '-nn802'

-- 
Pieter van Emmerik                    | Phone:  +31-74-483059
Hollandse Signaalapparaten b.v.       | FAX:    +31-74-425936
P.O.box 42                            | E-mail: emmerik@utwente.nl
7550 GD  Hengelo, The Netherlands     |         hp4nl!utrcu1!emmerik

dan@kfw.COM (Dan Mick) (02/02/91)

In article <786@utrcu1.UUCP> emmerik@utrcu1.UUCP (Emmerik P.J.L. van) writes:
>In article <785@utrcu1.UUCP>, emmerik@utrcu1.UUCP (Emmerik P.J.L. van) writes:
>> 
>> 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
>> 
>> I am using f2c version 27 june 1990, created on an APOLLO using
>> Domain/OS Version 10.1.
>> 
>Most answers told me just to add a -Nn802 option to the command as
>suggested in the message (-Nn802 being an undocumented f2c option).

-Nn is right there in my manpage for f2c; if it's really not in yours,
best get the latest version.

>The reason this was not obvious to me (in fact i tryed it) is that i
>used the f2c sources created on an Apollo system (the sources include a
>YACC file) compiled an runned them on a VAX/VMS system.
>Becouse VAX/VMS systems do not handle upper and lowercase characters the
>way UNIX systems do, f2c did not get the message.
>Fiddeling a bit the following worked:
>  f2c:==$f2c.exe
>  f2c "-Nn802" filename
>
>  f2c -Nn802 filename
>results in the message:
>  Error on line 0: Invalid flag '-nn802'

...which didn't immediately make you think "Why did it translate -Nn to -nn?"?
Why not?  Why, after seeing that, didn't you immediately think "Oh, this
isn't an f2c problem at all?"

Simple problem analysis saves a lot of net dollars, not to mention saving a 
lot of your time...