1828451 Members
3908 Online
109978 Solutions
New Discussion

Re: fortran77

 
SOLVED
Go to solution
bossuyt_2
Occasional Advisor

fortran77

Question again under vax VMS5.5 about . . .
using routine fortran77 . . .
I have some source like xxxxxx.for;2 . . .

Where is the compiler on the vax( and is it make xxxxxx to compile and create object ? ? )
What command to use my routines ? ? ? I think it's : run xxxx.for ? ?
excuse me I'm not developper under this langage . . .so ? ? I'm looking for information ? ? ?
Thank's
4 REPLIES 4
Mac Lilley
Frequent Advisor
Solution

Re: fortran77

Hello

To compile your fortran code

$ fortran xxxxx.for

you then need to link the code

$ link xxxxx.obj

and then run the executable

$ run xxxxx

You should check out the help available ...

$ help fortran and

$ help link


Regards

ML
Antoniov.
Honored Contributor

Re: fortran77

All DEC languages make an exe files; it not used any p-code (as Java). This means you have to compile and link exactly as posted by Mac.
The advantages of thi choice is you can distribuite your exe without any other file (because all runtime are installed with OS).
Also you can compile using different languages to make an exe (for example I use C and Cobol togheter).
Using link don't forget /EXE qualifier to create your executable everywhery you will.

Bye
Antoniov
Antonio Maria Vigliotti
Martin P.J. Zinser
Honored Contributor

Re: fortran77

One more thing to keep in mind is that most programs I know are not contained in one source file. If this is the case for you, you will receive messages about unresolved symbols during the link step. In that case, find the source files containing the missing routines ("search" is your friend), compile them and then link with a list of object modules, i.e.

link file1.obj,file2.obj

Greetings, Martin
Jan van den Ende
Honored Contributor

Re: fortran77

Well,

one thing comes first: for the FORTRAN command to work, you DO need to have the Fortran compiler installed, and the licence loaded.
If you just type FORTRAN, you _may_ get a reply _File?_ , then at least a compiler IS defined, and probably also installed.
If you get a _Unrecognised command_ error message, then the first thing you need to do is find a compiler (compatible with your VMS version) and a license.

Depending on what you get, we should be able to get you going.

Jan
Don't rust yours pelled jacker to fine doll missed aches.