Compiling F77 w/Silverfrost FTN95

  • Thread starter Thread starter darkchild
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around issues related to compiling Fortran 77 (F77) programs using Silverfrost FTN95 software. Participants are exploring the requirements for setting up the environment correctly, particularly concerning the PATH variable and the distinction between FTN95 and FTN77 compilers.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant expresses frustration over receiving an error message indicating that "FTN77 must be on the PATH" and seeks guidance on how to resolve this issue.
  • Another participant suggests starting the FTN95 executable and correctly saving the Fortran code in a fixed format file before compiling it.
  • A different participant clarifies that FTN95 can compile Fortran 77 code but emphasizes that FTN95 is not the same as FTN77, despite both being able to compile similar code.
  • One participant requests more information from the original poster to provide better assistance and suggests a specific command format for compiling the F77 file with FTN95.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to resolve the compilation issue, and multiple viewpoints regarding the use of FTN95 versus FTN77 are presented.

Contextual Notes

There is uncertainty regarding the correct setup of the PATH variable and the specific requirements for compiling F77 code with FTN95. Some participants assume familiarity with the software and its commands, which may not be the case for all users.

darkchild
Messages
153
Reaction score
0
I cannot for the life of me compile a f77 program with this software. I always get the error:

FTN77 must be on the PATH.

I'm pretty sure I figured out how to add stuff to my PATH, but I looked in the program folder and I don't see anything with "FTN77" in the name, so I have no idea what to add to the path. According to the website, this program should compile ftn77.

Any ideas? I really don't want to download another compiler (especially since I tried downloading g77 and can't even get things unzipped).
 
Technology news on Phys.org
darkchild said:
I cannot for the life of me compile a f77 program with this software. I always get the error:

FTN77 must be on the PATH.

I'm pretty sure I figured out how to add stuff to my PATH, but I looked in the program folder and I don't see anything with "FTN77" in the name, so I have no idea what to add to the path. According to the website, this program should compile ftn77.

Any ideas? I really don't want to download another compiler (especially since I tried downloading g77 and can't even get things unzipped).[/QUOT



first,start the ftn95.exe
then paste the code from fortran f77 code or writ the code correctly ,saved the code in fixed format file type,build it,compile and run the program.
 
FTN95 can compile Fortran 77 code (Fortran 77 is a language standard). FTN77 is a Fortran 77 compiler and so FTN95 can compile the same code as FTN77. FTN95 is not FTN77 -- its FTN95!

So you can take any code that you compiled with FTN77 and compile it with FTN95.
 
darkchild said:
I cannot for the life of me compile a f77 program with this software. I always get the error:

FTN77 must be on the PATH.

I'm pretty sure I figured out how to add stuff to my PATH, but I looked in the program folder and I don't see anything with "FTN77" in the name, so I have no idea what to add to the path. According to the website, this program should compile ftn77.

Any ideas? I really don't want to download another compiler (especially since I tried downloading g77 and can't even get things unzipped).

You haven't given us any information at all.

The command you need to give is something like:
FTN95 file.F77 /FIXED_FORMAT
or whatever suffix you have used on your file name.
 

Similar threads

Replies
4
Views
5K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 12 ·
Replies
12
Views
7K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K