'library' of .mod files 
Author Message
 'library' of .mod files

Hi,
I make from several .o files a static library. Remains the problem of
the .mod files that are needed by compilation process (and not link
process). I have understood that people usally put all the .mod files
in a directory, use the -I option, and use after the library to link.
Instead of putting them in a directory, is there a way to make a kind
of 'library' that contains all the .mod files ? I didn't find any
compiler option. This approach could be more direct in the sense that
you give to someone one 'libray' instead of a huge amount of .mod
files.
Thanks


Tue, 28 Mar 2006 20:06:57 GMT  
 'library' of .mod files

Quote:

> Instead of putting them in a directory, is there a way to make a kind
> of 'library' that contains all the .mod files ?

You didn't mention a specific compiler.  If there were such an option,
it would be compiler-specific.  Heck, it is compiler-specific whether
there is even such a thing as a mod file at all (though most compilers
seem to have them).  The particular form of the mod files is highly
compiler-specific.

Anyway, at least for most compilers, the answer is no.  I'm not sure
what exceptions there might be, though it is possible that there
might be some.

I'm ignoring the fact that it doesn't take too high a level of abstraction
to consider a directory to be a kind of file.

If you have any familiarity with C, it might help to think of the f90 .mod
files as somewhat like automatically generated "header" (.h) files.

--
Richard Maine
email: my last name at domain
domain: isomedia dot com



Wed, 29 Mar 2006 00:40:49 GMT  
 'library' of .mod files


Quote:
> > Instead of putting them in a directory, is there a way to make a kind
> > of 'library' that contains all the .mod files ?

> You didn't mention a specific compiler.  If there were such an option,
> it would be compiler-specific.

I think the IBM xlf compiler allows you to place .mod files in a
regular library file (created with the ar command).  I don't do
this, for portability reasons, but I remember reading some time ago
about how to do it in one of the IBM manuals.

$.02 -Ron Shepard



Wed, 29 Mar 2006 07:49:10 GMT  
 'library' of .mod files


Quote:
> Hi,
> I make from several .o files a static library. Remains the problem of
> the .mod files that are needed by compilation process (and not link
> process). I have understood that people usally put all the .mod files
> in a directory, use the -I option, and use after the library to link.
> Instead of putting them in a directory, is there a way to make a kind
> of 'library' that contains all the .mod files ? I didn't find any
> compiler option. This approach could be more direct in the sense that
> you give to someone one 'libray' instead of a huge amount of .mod
> files.
> Thanks

Making a .a archive is not always making a library to do linking.
ar works on other files too. Just like tar.


Fri, 31 Mar 2006 07:14:53 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. What's .mod file in f90?

2. stream('file','c','seek ='x) problem

3. mod sound file editing library?

4. Fortran90 static library and .mod files

5. f90 mod files and library construction

6. compile problems: .mod files and libraries

7. get obj's into make file for library

8. Adding New VI's to existing library and modifying .mnu files

9. 'file mkdir' doesn't fail

10. How to get 'Eiffel The Libraries'?

11. Maritz: Why Microsoft won't ship Sun's Java Class Libraries

12. Wanted: library of CL-style 'defmacros'

 

 
Powered by phpBB® Forum Software