Re: Making fortran libraries
- From: pa@xxxxxxxxxxxxxxxxxxxxx (Pierre Asselin)
- Date: Thu, 30 Mar 2006 15:30:11 +0000 (UTC)
stuart Lynn <stuart.lynn@xxxxxxxxx> wrote:
"ar q libName.a *.o *.mod" where Name is the name of my library.
And your compiler can find .mod files inside archives ? There
was a thread about that just today.
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>"
It seems to me it can't find the *module* at compile time,
and it never got to looking for the library at link time.
If your compiler knows how to pull module files out of
archives, it may need an option different from "-L" to
tell it where to look. If it can't use archives, you need
to copy your .mod files somewhere else (and you still need
to tell the compiler where that is).
--
pa at panix dot com
.
- References:
- Making fortran libraries
- From: stuart Lynn
- Making fortran libraries
- Prev by Date: Re: Structure of large link libraries in f95
- Next by Date: Re: Structure of large link libraries in f95
- Previous by thread: Re: Making fortran libraries
- Next by thread: procedure argument
- Index(es):
Relevant Pages
|
|