Re: Making fortran libraries



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
.



Relevant Pages