[help]with gfortran on xp

Hello I was just wondering if anyone has any experince running gfortran on windows xp, the help file is no good. I installed the program but I'm having trouble compiling and writing code. Also do i edit the code in a text editor and then compile the code in the cmd.exe and if this is so what are some of the gfortran commands

thanks

#258094

Gfortran is used to compile a source file, source.f90, to an object file, object.o, or an executable, executable. Along the way it generates module description files for the modules it encounters, these are named nameofmodule.mod. If a module is used, gfortran will read from these same files.

In order to compile the source file source.f90, one would run: gfortran -c source.f90

The output file will automatically be named source.o. This is an object file, which cannot be executed.

Once you have compiled some source files, you can link them together with the necessary libraries to generate an executable. This is done as follows: gfortran -o executable object1.o object2.o ..., where the the executable will be named executable and the objectX.o are object files, which may have been created as above, or equally well by another compiler from sources in a different language. If -o executable is omitted, the executable will be named a.out (on cygwin systems: a.exe). The executable may then be executed like any other program.

One may also skip the separate compilation step, and enter a command such as gfortran -o executable source1.f90 source2.f90 which will compile the source files source1.f90 and source2.f90, link and generate the executable executable in one step. You can also put object files on this command line, they will be automatically linked in during the link step.

seems preaty self explanatory to me.

from:

http://gcc.gnu.org/fortran/usage.html#bu

#258100

ohh thanks man

i just read the instructions that came with the d/l

#258166