Making fortran libraries
- From: "stuart Lynn" <stuart.lynn@xxxxxxxxx>
- Date: 30 Mar 2006 06:58:24 -0800
I am having some trouble making my own library. I have a whole bunch of
modules I want to combine in to a single library (so that I dont have
to link to them all individually). I compile them all with :
"f95 -c mod_blah.f95"
where mod_blah is my module name and then combine them in to a
library using :
"ar q libName.a *.o *.mod" where Name is the name of my library.
This all works fine but when I try to link this to a program that uses
the modules in the library using :
f95 programName.f95 -L/libraryDirectory/ -lStu
It says it cant find the library. :
"Fatal Error: testPowerMulti.f95, line 3: Cannot find module
MOD_NUMERICS8
detected at MOD_NUMERICS8@<end-of-statement>"
Anyone have any ideas what I am doing wrong?? I am using nag fortran
(f95)
cheers
stuart
.
- Follow-Ups:
- Re: Making fortran libraries
- From: Pierre Asselin
- Re: Making fortran libraries
- From: stuart Lynn
- Re: Making fortran libraries
- Prev by Date: Re: How to link a Fortran static library to a C++ program?
- Next by Date: Re: Making fortran libraries
- Previous by thread: use a c dll in fortran?
- Next by thread: Re: Making fortran libraries
- Index(es):