[comp.lang.fortran] Question about BSD f77

talvola@janus.berkeley.edu (Erik Talvola) (07/27/89)

  Be warned - this is a neophyte at Fortran writing this letter, and it may
be really stupid.  If I compile the following piece of code on a VAX running
4.3 BSD, I get errors as follows:

C  LOGICAL LEFT SHIFT OPERATION
C
      INTEGER FUNCTION ZLLS(VALUE, PLACES)
      
      INTEGER   VALUE, PLACES
      INTRINSIC LSHFT			<---- line 65

      ZLLS = LSHFT(VALUE, PLACES)	<---- line 67

      END

% f77 -c -O zlogic.f

Error on line 65 of zlogic.f: Declaration error for lshft: unkonwn intrinsic function
Compiler error line 67 of zlogic.f: intrcall: bad intrgroup 0


----

Presumably, this means that the original Fortran compiler had a builtin LSHFT 
function in it, and BSD Vax Fortran doesn't.  Can anyone tell me how to get around
this and make the code compile?  I have done very little Fortran work, and I am
not sure how to fix this.  A similar error occurs later for an INTRINSIC RSHFT.

Many thanks in advance

--
---------------------------+
Erik Talvola               | "It's just what we need... a colossal negative 
talvola@cory.berkeley.edu  | space wedgie of great power coming right at us
...!ucbvax!cory!talvola    | at warp speed." -- Star Drek