g77 errors

Tony Arnold tony.arnold at manchester.ac.uk
Wed May 3 15:55:55 UTC 2006


Attila,

Attila Horvath wrote:
> 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?

I think you need to edit the source and put 6 spaces or a tabe character
at the start of each line. That's required in Fortran-77.

Your single quotes are rather odd characters too. I've attached an
edited version. It still complain about the use of REAL and AIMAG as
functions.

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.f
Type: text/x-fortran
Size: 807 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060503/24801a36/attachment.bin>


More information about the ubuntu-users mailing list