Tel: +44(0)1865 300 579
Fax: +44(0)1865 300 232
FTN95 from the Command Line |
|
|
![]()
It is fairly easy to get FTN95 to work with your text-editor of choice, its command line options are clear and comprehensive. One option you might like to look at is /vs, it was designed so that Visual Studio could easily parse FTN95 error messages, you may find it helps with any integration you have to do. Fo example, in the above image, if the command had the /vs switch the output would be: C:\fortran>ftn95 z9.f90 /ignore 242 /vs
The other tool you will need to know something about is Slink the FTN95 linker. When you compile a file, z9.f90 for example, you produce a file with the same name but having a .obj extension (z9.obj in this case). This is called the object file. Slink's job is to take all your object files and link them all together to produce an executable that you can run. For programs that have more than a couple object files the easiest solution is use a linker response file -- a command file that slink loads and follows. Using a response file is much easier than it sounds! For example. say we have three objects files (z9, z8 and z7) and we want to produce a program called 'simul.exe' we would do: C:\fortran>slink simul.inf
simul.inf is a text file that contains slink commands: lo z9.obj
There is full documentation of FTN95 and Slink in the help file installed with FTN95. |