- #1
logix88
- 12
- 0
Hi!
I wanted to install a f77 compiler, I am running Win7 but also have WinXP, I installed MinGW 5.1.3 and did everything mentioned in this pdf (https://docs.google.com/viewer?url=http://www.pns.anl.gov/instruments/scd/subscd/Fortran_and_C.pdf)
So, basically its an automatic installer, I just had to add the Enivormental Variables bit
I went into Advanced settings, created new User variable called PATH and set variable value to C:\MinGW\bin as it says... but when I compiled ( g77 hello.f -o hello ) simple helloworld prg it gave me this:
C:\>cd MinGW
C:\MinGW>g77 hello.f -o hello
hello.f:1:
PROGRAM MAIN
^
Invalid first character at (^) [info -f g77 M LEX]
hello.f:2:
PRINT *, 'HELLO WORLD'
^
Invalid first character at (^) [info -f g77 M LEX]
hello.f:3:
STOP
^
Invalid first character at (^) [info -f g77 M LEX]
hello.f:4:
END
^
Invalid first character at (^) [info -f g77 M LEX]
Any clue what might have gone wrong?
Pls do help...
I wanted to install a f77 compiler, I am running Win7 but also have WinXP, I installed MinGW 5.1.3 and did everything mentioned in this pdf (https://docs.google.com/viewer?url=http://www.pns.anl.gov/instruments/scd/subscd/Fortran_and_C.pdf)
So, basically its an automatic installer, I just had to add the Enivormental Variables bit
I went into Advanced settings, created new User variable called PATH and set variable value to C:\MinGW\bin as it says... but when I compiled ( g77 hello.f -o hello ) simple helloworld prg it gave me this:
C:\>cd MinGW
C:\MinGW>g77 hello.f -o hello
hello.f:1:
PROGRAM MAIN
^
Invalid first character at (^) [info -f g77 M LEX]
hello.f:2:
PRINT *, 'HELLO WORLD'
^
Invalid first character at (^) [info -f g77 M LEX]
hello.f:3:
STOP
^
Invalid first character at (^) [info -f g77 M LEX]
hello.f:4:
END
^
Invalid first character at (^) [info -f g77 M LEX]
Any clue what might have gone wrong?
Pls do help...