PDA

View Full Version : how to compile the fortran in command mode in windows


pagoda
11-05-2003, 09:01 PM
Hi there

I just download one trial copy of fortran complier, I have no idea where I can find the information to complile my first hello world file in command mode under windows OS.

Can I have your help?

Cheers

Jack from UK

tzeis
11-06-2003, 06:37 PM
The main thing you need to know is "lf95". If you type "lf95" at the command line, you will get a synopsis of the compiler operation. If your hello world program is in the file called "hello.f90", you can compile it by typing:

lf95 hello.f90

It will compile and link the program and generate an executable called "hello.exe"