fl.hlp (Table of Contents; Topic list)
Linking with Libraries
                                             Up Contents Index Back
─────Linking with Libraries─────────────────────────────────────────────────
 
     When FL compiles a source file, it places a FORTRAN library name
     in the object file. The library name corresponds to the memory-
     model and floating-point options chosen on the FL command line, or
     the default library name.
 
     The linker looks for a library matching the name embedded in the
     object file. If it finds a library with that name, it
     automatically links the library with the object file.
 
     The result is that you do not need to specify library names on the
     FL command line unless you want to link with standard libraries
     renamed during SETUP, with libraries other than the default
     library for the floating-point and memory-model options you have
     chosen, or with user-created libraries.
 
     If you want to link with other libraries, you must do one of the
     following:
 
        ■ Specify the library names on the command line
 
        ■ Use the /link option on the FL command line and include the
          new library names
 
        ■ Run the linker and specify the library names separately
 
     The linker tries to resolve external references by searching the
     library specified before it searches the library whose name is
     embedded in the object file. To ignore the library whose name is
     embedded in the object file, include the linker option /NOD
     (NODEFAULTLIBRARYSEARCH) or the /Zl compiler option.
 
     Setting up under OS/2 for both real- and protected-mode
     programming creates separate real- and protected-mode libraries,
     with different names. Use the /L option to specify the correct
     link library.
 
     See Also: /A
               /NOD
               /Zl
                                    -♦-