Linking XL Fortran programs

By default, you do not need to do anything special to link an XL Fortran program. The compiler invocation commands automatically call the linker to produce an executable output file. For example, running the following command compiles and produces object files file1.o and file3.o.
xlf95 file1.f file2.o file3.f
Then all object files are submitted to the linker to produce one executable file.

After linking, follow the instructions in Running XL Fortran programs to execute the program.

To link a library, follow the instructions in Compiling and linking a library.

Note: If you want to use a nondefault linker, you can use either of the following options: