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

  • Re: creating a library file (libXXXX.a) from many source code files
    ... >> I wasn't sure that the tornado make is compatible with gcc, ... then add a post build rule that archives the .o ... >>>specifics of your particular compiler. ... >>>Followed by documentation for GNU ar for actually creating .a files. ...
    (comp.os.vxworks)
  • GCCSDK setup problem
    ... I'm trying to set up GCCSDK on my shiny new emulated RiscPC. ... unzipped the two archives, installed UnixLib, etc, and now the compiler ...
    (comp.sys.acorn.programmer)
  • Re: C++ Library call to gather process characteristics? pstat?
    ... in fact the compiler (when the archive was ... point me to the reference, ... they are not included in any user built archives. ...
    (comp.unix.programmer)
  • Re: C++ Library call to gather process characteristics? pstat?
    ... That could be done of course, a lot of code is libraries included as ... archives that I do not with to recompile unless I need to. ... true shared object defining new, or my hack, is found first? ... in fact the compiler (when the archive was ...
    (comp.unix.programmer)
  • Re: [SLE] Good News on 9.0 over 8.2
    ... Bruce Marshall wrote: ... I have not updated the compiler. ... >I'm going to have to send you to the archives. ... I think the modutils you have should be fine. ...
    (SuSE)