Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Store Object Code in Static Libraries

Another way to organize source code used by several projects is to build a static library (for Windows*, .lib and for Linux*, .a) containing the object files for the reused procedures. You can create a static library by doing the following:

  • From the Microsoft* Visual Studio* integrated development environment (IDE), create and build a Fortran Static Library project type.

  • From the command line, use the xiar command (on Linux) or the xilib command (Windows).

After you have created a static library, you can use it as input to other types of Intel® Fortran Compiler projects.