Does anyone know the details of how to create a Fortran Static Library using the Compaq Fortran Visual Studio?
There is a so-called example in the SAMPLES file that comes with the CD-ROM, but there is no explanation at all. My specific questions are:
1. When is it necessary to use the MODULE -- END MODULE statements, and exactly how are they used? When I insert these into the block of code that is to become my library, the compiler balks and says 'illegal statement'. No discussion of this point in the HELP documentation so far as I could find.
2. How come the "NEW --- PROJECT" option does not seem to support the creation of Fortran Static Libraries? I choose the Project Type to be Fortran Static Library, give the library name. Next, I choose 'build' and compile the module from the source code. This works fine, and I do get a " .LIB" file out of this, but when I attempt to use it (i.e. - compile a separate program that calls a subroutine in the LIB file), I get the message 'Library not found'. Is it possible to do what I want to do? No discussion of this in the HELP documentation.
3. The HELP documentation talks about '.MOD' files. If you look for one of the standard Fortran libraries, for example DFLIB, you will find that it is stored as 'DFLIB.MOD'. How is this different from a '.LIB' file, and when do I need to use it? Again, no help from the HELP documents.
4. Exactly how does the calling program know where to look for a new library? Can I store my .LIB file anywhere? Where and how do I specify a path name for this -- When I compile the calling program? -- When I generate the library? -- When I generate the .MOD file? No discussion of this in the HELP documentation.