View Full Version : Source files inmultiple directories
R. T. (Fortran Man)
08-11-2003, 08:56 PM
I have source files in several different directories. Is it possible to compile and link them all at once, or do I have to compile each directory separately?
Lahey Support
08-11-2003, 11:06 PM
You can compile and link Fortran source files which reside in various directories with one command. By default, the compiler will place the compiled object files in the current directory, so all the object files will be in one place for linking. For example, if you have a source file called "a.for" in the current directory, and a source file called "b.for" in the directory "c:\dir1", the command
lf95 a.for c:\dir1\b.for
will compile and link both files, and produce the executable "a.exe".
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.