Libvogle a basic vector-based graphics library in C, but Fortran-callable. Grapheps is a port of a very compact Postscript library. EGGX/ProCALL is an X11 graphics library for C and FORTRAN created to achieve extreme simplicity. Uses only (OS: GPL) GrWin is a Windows graphics library for FORTRAN and C. The Fitpack Library. FITPACK by Paul Dierckx is a Fortran-based library for one-dimensional and two-dimensional spline interpolations. This library has been repackaged to work with the GAMS Function Library Facility. The model from the GAMS Test Library is an example of the use of the library FITPACK inside GAMS.
I'meters having problems relating my plan to a library. I've certainly not done this before therefore I'm most likely doing something ridiculous, but simply because considerably as I can inform I'm performing the correct factor. I require to link my plan
foo.f90
to a librarylibbar.a
which will be in a listing elsewhere below my house directory site. I enter the command:But this throws:
Where of program
libhealpix.a
is certainly the actual library (instead thanlibbar.a
)Any concepts as to why this would take place?
StevenMurrayStevenMurray39811 platinum logo33 magic badges1616 bronze badges
1 Answer
Attempt
-lbar
(or maybe-lhealpix
, if that'h the true library title).-lxyz
outcomes in a search for a document namedlibxyz.a
. Consequently, if you stipulate-llibbar.a
after that the file wants to be namedliblibbar.a.a
.You could furthermore simply stipulate the path and full name of the save document on the gfortran command collection:
IanHIanHgfortran -o foo foo.y90 /directory website/of/library/libbar.a
17.7k22 gold badges2525 gold badges4747 bronze badges