g77 errors
Attila Horvath
mutsuura at mutsuura.com
Wed May 3 15:42:52 UTC 2006
Can anyone offer some help with Fortran compilation...
Am trying to compile a very simple fortran program but I'm getting
compiler errors on every single line:
'Invalid first character at (^) [info -f g77 M LEX]'
Does g77 invoke LEX? Is this something else I need in addition to the
standard gcc installed package?
If anyone can compile the file successfully, can you send me the exact
acommand line?
Thx in adavnce
Attila
PS: have attached the sample file
_
Mutsuura Associates, Inc. /\ \
Vienna, VA 22181 / \ \
/ /\ \ \
/ / /\ \ \
E-MAIL: contact at mutsuura.com / /_/ \ \ \
WEB: http://www.mutsuura.com / \ \ / \ \
/ /\ \ \/ /\ \ \
MAIN:(703)281-9722 / / /\ \/ / /\ \ \
CELL:(703)863-1933 / / / \ / / \ \ \
FAX :(703)281-9744 / / / \/_/ \ \_\
SBA/SDB CERTIFIED \/_/ \/_/
-------------- next part --------------
PROGRAM JCB003
C
C Written by James Craig Burley 1997-02-23.
C
C Determine how compilers handle non-standard REAL
C and AIMAG on DOUBLE COMPLEX operands.
C
DOUBLE COMPLEX Z
REAL R
Z = (3.3D0, 4.4D0)
R = Z
CALL DUMDUM(Z, R)
R = REAL(Z) - R
IF (R .NE. 0.) PRINT *, REAL() is Fortran 90
IF (R .EQ. 0.) PRINT *, REAL() is not Fortran 90
R = 4.4D0
CALL DUMDUM(Z, R)
R = AIMAG(Z) - R
IF (R .NE. 0.) PRINT *, AIMAG() is Fortran 90
IF (R .EQ. 0.) PRINT *, AIMAG() is not Fortran 90
END
C
C Just to make sure compiler doesnt use naive flow
C analysis to optimize away careful work above,
C which might invalidate results....
C
SUBROUTINE DUMDUM(Z, R)
DOUBLE COMPLEX Z
REAL R
END
More information about the ubuntu-users
mailing list