Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Feb 1997 08:15:54 +0100 (MET)
From:      Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
To:        chnam@hanul.hangkong.ac.kr (changho nam)
Cc:        questions@freebsd.org
Subject:   Re: fortran compiler
Message-ID:  <199702120715.IAA28844@gilberto.physik.rwth-aachen.de>
In-Reply-To: <l03010d00af27526f1223@[134.75.55.227]> from changho nam at "Feb 12, 97 12:17:06 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> Have anyone used a fortran compiler on FreeBSD ?
> Could you help me how to use a fortran compiler ?

use f77 (the compiler driver).  

file: f.f

       program main
       write(*,*) 'hello world'
       end                                

f77 -o f f.f

f77 -c f.f   produces  f.o

f77 -o f f.o a.o b.o

builds the executable out of several .o files.

Learn to use make.


For more information of the f77 compiler switches study the f2c man page.



> 
> changho
> 
> 
> 

--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702120715.IAA28844>