On Fri, 20 Sep 2002, Clive Page wrote:
> On Fri, 20 Sep 2002, Tony Keating wrote:
>
> > > I used an awkward solution:
> > >
> > > pgf90 test.f90 sblas13e.a -o test.x
> >
> > I normally rename the .a file to begin with lib, i.e. libsblas13e.a move
> > it somewhere, i.e. /usr/local/lib/
> >
> > Then you can link the library with -lsblas13e and -L/usr/local/lib/
> >
> > i.e. with ifc
> >
> > ifc test.f90 -o test.x -lsblas13e -L/usr/local/lib/
>
> But if just adding "sblas13e.a" to the command-line is awkward, isn't
> adding "-lsblas13e -L/usr/local/lib/" ridiculously awkward? The former
> seems so much simpler.
>
If the library is used once, for one project, I guess so. But if you
compile the library once, and use it for multiple projects, this is what's
typically done with third-party bits and pieces (at least what I've seen)
Tony.
--
Tony Keating <[log in to unmask]> [http://www.mech.uq.edu.au/~tonyk]
Dept. of Mechanical Engineering, The University of Queensland, AUSTRALIA
|