DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(automk14.info.gz) How the Linker is Chosen

Info Catalog (automk14.info.gz) Mixing Fortran 77 With C and C++ (automk14.info.gz) Mixing Fortran 77 With C and C++
 
 7.8.3.1 How the Linker is Chosen
 ................................
 
 The following diagram demonstrates under what conditions a particular
 linker is chosen by Automake.
 
    For example, if Fortran 77, C and C++ source code were to be compiled
 into a program, then the C++ linker will be used.  In this case, if the
 C or Fortran 77 linkers required any special libraries that weren't
 included by the C++ linker, then they must be manually added to an
 `_LDADD' or `_LIBADD' variable by the user writing the `Makefile.am'.
 
                           \              Linker
                source      \
                 code        \     C        C++     Fortran
           -----------------  +---------+---------+---------+
                              |         |         |         |
           C                  |    x    |         |         |
                              |         |         |         |
                              +---------+---------+---------+
                              |         |         |         |
               C++            |         |    x    |         |
                              |         |         |         |
                              +---------+---------+---------+
                              |         |         |         |
                     Fortran  |         |         |    x    |
                              |         |         |         |
                              +---------+---------+---------+
                              |         |         |         |
           C + C++            |         |    x    |         |
                              |         |         |         |
                              +---------+---------+---------+
                              |         |         |         |
           C +       Fortran  |         |         |    x    |
                              |         |         |         |
                              +---------+---------+---------+
                              |         |         |         |
               C++ + Fortran  |         |    x    |         |
                              |         |         |         |
                              +---------+---------+---------+
                              |         |         |         |
           C + C++ + Fortran  |         |    x    |         |
                              |         |         |         |
                              +---------+---------+---------+
 
Info Catalog (automk14.info.gz) Mixing Fortran 77 With C and C++ (automk14.info.gz) Mixing Fortran 77 With C and C++
automatically generated byinfo2html