> I have built a library with frequently used routines. The name is
> mylib.f90. In the library I am using modules and generic interfaces.
> Compiling the library with 'f90 -c mylib.f90' creats mylib.o and
> mylib.mod. I can use the library simply by linking to my program,
> for example 'f90 tst.f90 mylib.o'. Everything works fine as long as
> my working directory contains also mylib.o and mybib.mod. If this is
> not the case, I am not able to link mybib.o to tst.f90. I have tried
> 'f90 tst.f0 -L~/LIB/mybib.o without success (mylib.o is in the
> directory LIB).
Try this:
f90 tst.f90 $HOME/LIB/mylib.b
-jack
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|